diff options
author | Jonathan Nieder <jrnieder@gmail.com> | 2012-03-13 00:05:54 -0500 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2012-03-13 14:26:33 -0700 |
commit | 6dd88832e77ad7c0c7f82522d3741b5b7bf62fbd (patch) | |
tree | 52a1cb27cd23d28d71dbf9647b759ac2ad2d967e /t/t4031-diff-rewrite-binary.sh | |
parent | 2983c0e22a5b6a56b8f5d7bb2dd2a3a0e26ac005 (diff) | |
download | git-6dd88832e77ad7c0c7f82522d3741b5b7bf62fbd.tar.gz |
diffstat summary line varies by locale: miscellanyjn/diffstat-tests
These changes are in the same spirit as the six patches that
precede them, but they haven't been split into individually
justifiable patches yet.
Signed-off-by: Jonathan Nieder <jrnieder@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t4031-diff-rewrite-binary.sh')
-rwxr-xr-x | t/t4031-diff-rewrite-binary.sh | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/t/t4031-diff-rewrite-binary.sh b/t/t4031-diff-rewrite-binary.sh index 7d7470f21b..c8296fa4fc 100755 --- a/t/t4031-diff-rewrite-binary.sh +++ b/t/t4031-diff-rewrite-binary.sh @@ -44,10 +44,16 @@ test_expect_success 'rewrite diff can show binary patch' ' grep "GIT binary patch" diff ' -test_expect_success 'rewrite diff --stat shows binary changes' ' +test_expect_success 'rewrite diff --numstat shows binary changes' ' + git diff -B --numstat --summary >diff && + grep -e "- - " diff && + grep " rewrite file" diff +' + +test_expect_success 'diff --stat counts binary rewrite as 0 lines' ' git diff -B --stat --summary >diff && grep "Bin" diff && - grep "0 insertions.*0 deletions" diff && + test_i18ngrep "0 insertions.*0 deletions" diff && grep " rewrite file" diff ' |