repo.or.cz
/
git
/
jnareb-git.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
git-check-attr: Extract a function output_attr()
[git/jnareb-git.git]
/
t
/
t4049-diff-stat-count.sh
blob
641e70d14d82b2e3870af058f09d063c99812825
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
17
a | 1 +
18
b | 1 +
19
2 files changed, 2 insertions(+), 0 deletions(-)
20
EOF
21
git diff --stat --stat-count=2 >actual &&
22
test_cmp expect actual
23
'
24
25
test_done