Code

[PATCH] Make -C less eager.
authorJunio C Hamano <junkio@cox.net>
Sun, 19 Jun 2005 20:14:05 +0000 (13:14 -0700)
committerLinus Torvalds <torvalds@ppc970.osdl.org>
Mon, 20 Jun 2005 03:13:18 +0000 (20:13 -0700)
commit4727f640036fbdad414bdcbe31d08f6a8fd70923
tree5458d4661aed71ae5864f663f636cf9707e43e9e
parent170241b7d1437e082c13a6f6b812eb827a7d48e0
[PATCH] Make -C less eager.

Like diff-tree, this patch makes -C option for diff-* brothers
to use only pre-image of modified files as rename/copy detection
by default.  Give --find-copies-harder to use unmodified files
to find copies from as well.

This also fixes "diff-files -C" problem earlier noticed by
Linus.  It was feeding the null sha1 even when the file in the
work tree was known to match what is in the index file.  This
resulted in diff-files showing everything in the project.

Signed-off-by: Junio C Hamano <junkio@cox.net>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
diff-cache.c
diff-files.c
diff-stages.c
diff-tree.c
t/t4003-diff-rename-1.sh
t/t4005-diff-rename-2.sh
t/t4007-rename-3.sh
t/t4009-diff-rename-4.sh