summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 1df2a1c)
raw | patch | inline | side by side (parent: 1df2a1c)
author | Linus Torvalds <torvalds@linux-foundation.org> | |
Mon, 27 Oct 2008 20:06:16 +0000 (13:06 -0700) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Tue, 28 Oct 2008 15:58:42 +0000 (08:58 -0700) |
When we refuse to do rename detection due to having too many files
created or deleted, let the user know the numbers. That way there is a
reasonable starting point for setting the diff.renamelimit option.
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
created or deleted, let the user know the numbers. That way there is a
reasonable starting point for setting the diff.renamelimit option.
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
diffcore-rename.c | patch | blob | history |
diff --git a/diffcore-rename.c b/diffcore-rename.c
index 1b2ebb40014d820fe4fb679509ab694d453be7b4..168a95b541c2d6a4679115ebc9f30b1016645b19 100644 (file)
--- a/diffcore-rename.c
+++ b/diffcore-rename.c
if ((num_create > rename_limit && num_src > rename_limit) ||
(num_create * num_src > rename_limit * rename_limit)) {
if (options->warn_on_too_large_rename)
- warning("too many files, skipping inexact rename detection");
+ warning("too many files (created: %d deleted: %d), skipping inexact rename detection", num_create, num_src);
goto cleanup;
}