tests: check --[short]stat output after chmod
commit4434e6ba6c2de994bd28892abe9fb3bdf1641560
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Tue, 1 May 2012 17:10:13 +0000 (1 19:10 +0200)
committerJunio C Hamano <gitster@pobox.com>
Tue, 1 May 2012 18:02:12 +0000 (1 11:02 -0700)
tree67cc275a033e9e5716a5ec4a13b993e76e76db40
parentec57a821a3bacdaaaf5eeba55a124bf1a502a13f
tests: check --[short]stat output after chmod

Add a test to check 'diff --stat' output with a text file after chmod,
and the same for a binary file. This demonstrates that text and binary
files are treated differently, which can be misleading.

While at it, add tests to check --shortstat output, too.

Reported-by: Martin Mareš <mj@ucw.cz>
Signed-off-by: Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/t4006-diff-mode.sh