X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=t%2Ft4031-diff-rewrite-binary.sh;h=7d7470f21b66a937e7414f4fe5419f8830fd8e86;hb=1b058bc30df5f79fe7449cacd8ae7128944327f7;hp=7e7b307a24606131b4880817a0056af11973f3d2;hpb=03f94ae9f909952ed5a78917ab319a312889354b;p=git.git diff --git a/t/t4031-diff-rewrite-binary.sh b/t/t4031-diff-rewrite-binary.sh index 7e7b307a2..7d7470f21 100755 --- a/t/t4031-diff-rewrite-binary.sh +++ b/t/t4031-diff-rewrite-binary.sh @@ -44,6 +44,13 @@ test_expect_success 'rewrite diff can show binary patch' ' grep "GIT binary patch" diff ' +test_expect_success 'rewrite diff --stat shows binary changes' ' + git diff -B --stat --summary >diff && + grep "Bin" diff && + grep "0 insertions.*0 deletions" diff && + grep " rewrite file" diff +' + { echo "#!$SHELL_PATH" cat <<'EOF'