@@ -1684,6 +1684,75 @@ test_expect_success 'log --graph with --name-only' '
16841684 test_cmp_graph --name-only tangle..reach
16851685'
16861686
1687+ test_expect_success ' --no-graph countermands --graph' '
1688+ git log >expect &&
1689+ git log --graph --no-graph >actual &&
1690+ test_cmp expect actual
1691+ '
1692+
1693+ test_expect_success ' --graph countermands --no-graph' '
1694+ git log --graph >expect &&
1695+ git log --no-graph --graph >actual &&
1696+ test_cmp expect actual
1697+ '
1698+
1699+ test_expect_success ' --no-graph does not unset --topo-order' '
1700+ git log --topo-order >expect &&
1701+ git log --topo-order --no-graph >actual &&
1702+ test_cmp expect actual
1703+ '
1704+
1705+ test_expect_success ' --no-graph does not unset --parents' '
1706+ git log --parents >expect &&
1707+ git log --parents --no-graph >actual &&
1708+ test_cmp expect actual
1709+ '
1710+
1711+ test_expect_success ' --reverse and --graph conflict' '
1712+ test_must_fail git log --reverse --graph 2>stderr &&
1713+ test_i18ngrep "cannot be used together" stderr
1714+ '
1715+
1716+ test_expect_success ' --reverse --graph --no-graph works' '
1717+ git log --reverse >expect &&
1718+ git log --reverse --graph --no-graph >actual &&
1719+ test_cmp expect actual
1720+ '
1721+
1722+ test_expect_success ' --show-linear-break and --graph conflict' '
1723+ test_must_fail git log --show-linear-break --graph 2>stderr &&
1724+ test_i18ngrep "cannot be used together" stderr
1725+ '
1726+
1727+ test_expect_success ' --show-linear-break --graph --no-graph works' '
1728+ git log --show-linear-break >expect &&
1729+ git log --show-linear-break --graph --no-graph >actual &&
1730+ test_cmp expect actual
1731+ '
1732+
1733+ test_expect_success ' --no-walk and --graph conflict' '
1734+ test_must_fail git log --no-walk --graph 2>stderr &&
1735+ test_i18ngrep "cannot be used together" stderr
1736+ '
1737+
1738+ test_expect_success ' --no-walk --graph --no-graph works' '
1739+ git log --no-walk >expect &&
1740+ git log --no-walk --graph --no-graph >actual &&
1741+ test_cmp expect actual
1742+ '
1743+
1744+ test_expect_success ' --walk-reflogs and --graph conflict' '
1745+ test_must_fail git log --walk-reflogs --graph 2>stderr &&
1746+ (test_i18ngrep "cannot combine" stderr ||
1747+ test_i18ngrep "cannot be used together" stderr)
1748+ '
1749+
1750+ test_expect_success ' --walk-reflogs --graph --no-graph works' '
1751+ git log --walk-reflogs >expect &&
1752+ git log --walk-reflogs --graph --no-graph >actual &&
1753+ test_cmp expect actual
1754+ '
1755+
16871756test_expect_success ' dotdot is a parent directory' '
16881757 mkdir -p a/b &&
16891758 ( echo sixth && echo fifth ) >expect &&
0 commit comments