Avoid "diff-index --cached" optimization under --find-copies-harder
commita0919ced8a5efe938cf97c74a0f851cbbe00aaf6
authorJunio C Hamano <gitster@pobox.com>
Sat, 23 May 2009 06:14:25 +0000 (22 23:14 -0700)
committerJunio C Hamano <gitster@pobox.com>
Mon, 25 May 2009 18:35:29 +0000 (25 11:35 -0700)
tree0e2fd9892101648379d29d4d59416a6b0b440ab5
parentb65982b60876c8f5f4d3b2898d5174f4812552b1
Avoid "diff-index --cached" optimization under --find-copies-harder

When find-copies-harder is in effect, the diff frontends are expected to
feed all paths, not just changed paths, to the diffcore, so that copy
sources can be picked up.  In such a case, not descending into subtrees
using the cache-tree information is simply wrong.

Signed-off-by: Junio C Hamano <gitster@pobox.com>
diff-lib.c
t/t4007-rename-3.sh