Code

--dirstat: In case of renames, use target filename instead of source filename
authorJohan Herland <johan@herland.net>
Tue, 12 Apr 2011 09:24:34 +0000 (11:24 +0200)
committerJunio C Hamano <gitster@pobox.com>
Tue, 12 Apr 2011 18:29:34 +0000 (11:29 -0700)
commit2ca86714703f81f9dd5dfb31f8d97a8a0089634d
tree03e96bbf2b7fafaa57b6ff9dad2346b518a26fca
parent2ff3a80334115797b8446909655e536f43900bc5
--dirstat: In case of renames, use target filename instead of source filename

This changes --dirstat analysis to count "damage" toward the target filename,
rather than the source filename. For renames within a directory, this won't
matter to the final output, but when moving files between diretories, the
output now lists the target directory rather than the source directory.

Signed-off-by: Johan Herland <johan@herland.net>
Acked-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
diff.c