-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* mg/diff-stat-count: diff --stat-count: finishing touches diff-options.txt: describe --stat-{width,name-width,count} diff: introduce --stat-lines to limit the stat lines diff.c: omit hidden entries from namelen calculation with --stat
- Loading branch information
Showing
4 changed files
with
78 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
#!/bin/sh | ||
# Copyright (c) 2011, Google Inc. | ||
|
||
test_description='diff --stat-count' | ||
. ./test-lib.sh | ||
|
||
test_expect_success setup ' | ||
>a && | ||
>b && | ||
>c && | ||
>d && | ||
git add a b c d && | ||
chmod +x c d && | ||
echo a >a && | ||
echo b >b && | ||
cat >expect <<-\EOF | ||
a | 1 + | ||
b | 1 + | ||
2 files changed, 2 insertions(+), 0 deletions(-) | ||
EOF | ||
git diff --stat --stat-count=2 >actual && | ||
test_cmp expect actual | ||
' | ||
|
||
test_done |