@@ -1671,6 +1671,75 @@ test_expect_success 'log --graph with --name-only' '
16711671 test_cmp_graph --name-only tangle..reach
16721672'
16731673
1674+ test_expect_success ' --no-graph countermands --graph' '
1675+ git log >expect &&
1676+ git log --graph --no-graph >actual &&
1677+ test_cmp expect actual
1678+ '
1679+
1680+ test_expect_success ' --graph countermands --no-graph' '
1681+ git log --graph >expect &&
1682+ git log --no-graph --graph >actual &&
1683+ test_cmp expect actual
1684+ '
1685+
1686+ test_expect_success ' --no-graph does not unset --topo-order' '
1687+ git log --topo-order >expect &&
1688+ git log --topo-order --no-graph >actual &&
1689+ test_cmp expect actual
1690+ '
1691+
1692+ test_expect_success ' --no-graph does not unset --parents' '
1693+ git log --parents >expect &&
1694+ git log --parents --no-graph >actual &&
1695+ test_cmp expect actual
1696+ '
1697+
1698+ test_expect_success ' --reverse and --graph conflict' '
1699+ test_must_fail git log --reverse --graph 2>stderr &&
1700+ test_i18ngrep "cannot be used together" stderr
1701+ '
1702+
1703+ test_expect_success ' --reverse --graph --no-graph works' '
1704+ git log --reverse >expect &&
1705+ git log --reverse --graph --no-graph >actual &&
1706+ test_cmp expect actual
1707+ '
1708+
1709+ test_expect_success ' --show-linear-break and --graph conflict' '
1710+ test_must_fail git log --show-linear-break --graph 2>stderr &&
1711+ test_i18ngrep "cannot be used together" stderr
1712+ '
1713+
1714+ test_expect_success ' --show-linear-break --graph --no-graph works' '
1715+ git log --show-linear-break >expect &&
1716+ git log --show-linear-break --graph --no-graph >actual &&
1717+ test_cmp expect actual
1718+ '
1719+
1720+ test_expect_success ' --no-walk and --graph conflict' '
1721+ test_must_fail git log --no-walk --graph 2>stderr &&
1722+ test_i18ngrep "cannot be used together" stderr
1723+ '
1724+
1725+ test_expect_success ' --no-walk --graph --no-graph works' '
1726+ git log --no-walk >expect &&
1727+ git log --no-walk --graph --no-graph >actual &&
1728+ test_cmp expect actual
1729+ '
1730+
1731+ test_expect_success ' --walk-reflogs and --graph conflict' '
1732+ test_must_fail git log --walk-reflogs --graph 2>stderr &&
1733+ (test_i18ngrep "cannot combine" stderr ||
1734+ test_i18ngrep "cannot be used together" stderr)
1735+ '
1736+
1737+ test_expect_success ' --walk-reflogs --graph --no-graph works' '
1738+ git log --walk-reflogs >expect &&
1739+ git log --walk-reflogs --graph --no-graph >actual &&
1740+ test_cmp expect actual
1741+ '
1742+
16741743test_expect_success ' dotdot is a parent directory' '
16751744 mkdir -p a/b &&
16761745 ( echo sixth && echo fifth ) >expect &&
0 commit comments