]> git.ipfire.org Git - thirdparty/git.git/commit - diff.c
diffcore-rename: fall back to -C when -C -C busts the rename limit
authorJunio C Hamano <gitster@pobox.com>
Thu, 6 Jan 2011 21:50:06 +0000 (13:50 -0800)
committerJunio C Hamano <gitster@pobox.com>
Tue, 22 Mar 2011 21:29:07 +0000 (14:29 -0700)
commitf31027c99cb2ec4eb7ad8d1ebc7f0e20fef4bd1d
treeecc4d0213fcbd8c270b254cec1caff867034ac7d
parente88d6bc6f90059f6e87f6d51eba83ec15e4eecc9
diffcore-rename: fall back to -C when -C -C busts the rename limit

When there are too many paths in the project, the number of rename source
candidates "git diff -C -C" finds will exceed the rename detection limit,
and no inexact rename detection is performed.  We however could fall back
to "git diff -C" if the number of modified paths is sufficiently small.

Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/diff-tree.c
builtin/log.c
diff.c
diff.h
diffcore-rename.c
merge-recursive.c
t/t4001-diff-rename.sh