diff --stat: report mode-only changes for binary files like text files
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Tue, 1 May 2012 17:10:14 +0000 (19:10 +0200)
committerJunio C Hamano <gitster@pobox.com>
Wed, 2 May 2012 04:26:46 +0000 (21:26 -0700)
commite18872b2f0fba4cb860c9350bb8b8d8680dfc83b
treeb9cc40964d8f6c95d648a074013af8aba6e73ecc
parent4434e6ba6c2de994bd28892abe9fb3bdf1641560
diff --stat: report mode-only changes for binary files like text files

Mode-only changes to binary files without content change were reported as
if they were rewritten, but text files in the same situation were reported
as "unchanged". Let's treat binary files like text files here, and simply
say that they are unchanged.

Output of --shortstat is modified in the same way.

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>
diff.c
t/t4006-diff-mode.sh