]>
Commit | Line | Data |
---|---|---|
e5f85df8 JH |
1 | #!/bin/sh |
2 | # Copyright (c) 2011, Google Inc. | |
3 | ||
4 | test_description='diff --stat-count' | |
5 | . ./test-lib.sh | |
6 | ||
7 | test_expect_success setup ' | |
8 | >a && | |
9 | >b && | |
10 | >c && | |
11 | >d && | |
12 | git add a b c d && | |
13 | chmod +x c d && | |
14 | echo a >a && | |
15 | echo b >b && | |
16 | cat >expect <<-\EOF | |
dc801e71 ZJS |
17 | a | 1 + |
18 | b | 1 + | |
74faaa16 LT |
19 | ... |
20 | 4 files changed, 2 insertions(+) | |
e5f85df8 JH |
21 | EOF |
22 | git diff --stat --stat-count=2 >actual && | |
fc5877a6 | 23 | test_i18ncmp expect actual |
e5f85df8 JH |
24 | ' |
25 | ||
26 | test_done |