2 # Copyright (c) 2011, Google Inc.
4 test_description='diff --stat-count'
7 test_expect_success 'setup' '
16 test_expect_success 'limit output to 2 (simple)' '
25 4 files changed, 2 insertions(+)
27 git diff --stat --stat-count=2 >actual &&
28 test_i18ncmp expect actual
31 test_expect_failure 'binary changes do not count in lines' '
36 cat "$TEST_DIRECTORY"/test-binary-1.png >d &&
41 4 files changed, 2 insertions(+)
43 git diff --stat --stat-count=2 >actual &&
44 test_i18ncmp expect actual
47 test_expect_failure 'exclude unmerged entries from total file count' '
51 git ls-files -s a >x &&
55 sed -e "s/ 0 a/ $stage d/" x
57 git update-index --index-info &&
64 4 files changed, 3 insertions(+)
66 git diff --stat --stat-count=2 >actual &&
67 test_i18ncmp expect actual