summaryrefslogtreecommitdiff
path: root/diffcore-rename.c
diff options
context:
space:
mode:
authorLibravatar Linus Torvalds <torvalds@linux-foundation.org>2008-10-27 13:06:16 -0700
committerLibravatar Junio C Hamano <gitster@pobox.com>2008-10-28 08:58:42 -0700
commit6e381d3aff89e09d13bd855ed6e18b0aa6f1e441 (patch)
tree734ba7aeb5252b117d5ae646170f3d7e1c1bf3a5 /diffcore-rename.c
parentInstall git-cvsserver in $(bindir) (diff)
downloadtgif-6e381d3aff89e09d13bd855ed6e18b0aa6f1e441.tar.xz
Add file delete/create info when we overflow rename_limit
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>
Diffstat (limited to 'diffcore-rename.c')
-rw-r--r--diffcore-rename.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/diffcore-rename.c b/diffcore-rename.c
index 1b2ebb4001..168a95b541 100644
--- a/diffcore-rename.c
+++ b/diffcore-rename.c
@@ -493,7 +493,7 @@ void diffcore_rename(struct diff_options *options)
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;
}