diff: Only count lines in show_shortstats
commitde9658b511377e9eaa2c58a8c3885a1a01b94be8
authorAlexander Strasser <eclipse7@gmx.net>
Fri, 15 Jun 2012 21:50:30 +0000 (15 23:50 +0200)
committerJunio C Hamano <gitster@pobox.com>
Fri, 15 Jun 2012 22:00:04 +0000 (15 15:00 -0700)
tree4cdba7ec3c345e2e6f63a54fa8cce5c5cfcfa0fb
parente18872b2f0fba4cb860c9350bb8b8d8680dfc83b
diff: Only count lines in show_shortstats

Do not mix byte and line counts. Binary files have byte counts;
skip them when accumulating line insertions/deletions.

The regression was introduced in e18872b.

Signed-off-by: Alexander Strasser <eclipse7@gmx.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
diff.c
t/t4012-diff-binary.sh