Code

diff.c: omit hidden entries from namelen calculation with --stat
authorMichael J Gruber <git@drmicha.warpmail.net>
Fri, 27 May 2011 12:36:40 +0000 (14:36 +0200)
committerJunio C Hamano <gitster@pobox.com>
Fri, 27 May 2011 17:44:02 +0000 (10:44 -0700)
commit358e460eebd3c19f228f02461b5f161ea48b0a98
tree228b757cce143536603c4660aa04a5e4ae6b528a
parent0b9deecf625677cf44058a42c2abd7add5167e81
diff.c: omit hidden entries from namelen calculation with --stat

Currently, --stat calculates the longest name from all items but then
drops some (mode changes) from the output later on.

Instead, drop them from the namelen generation and calculation.

Signed-off-by: Michael J Gruber <git@drmicha.warpmail.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
diff.c