3 test_description
='git commit summary'
6 test_expect_success
'setup' '
7 test_seq 101 200 >file &&
9 git commit -m initial &&
13 test_expect_success
'commit summary ignores rewrites' '
14 git reset --hard initial &&
15 test_seq 200 300 >file &&
17 git diff --stat >diffstat &&
18 git diff --stat --break-rewrites >diffstatrewrite &&
20 # make sure this scenario is a detectable rewrite
21 ! test_cmp_bin diffstat diffstatrewrite &&
24 git commit -m second >actual &&
26 grep "1 file" <actual >actual.total &&
27 grep "1 file" <diffstat >diffstat.total &&
28 test_cmp diffstat.total actual.total