diffstat summary line varies by locale: miscellany
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>
This commit is contained in:
committed by
Junio C Hamano
parent
2983c0e22a
commit
6dd88832e7
@@ -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
|
||||
'
|
||||
|
||||
|
||||
Reference in New Issue
Block a user