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>
Linus Torvalds committed
Oct 27, 2008 at 13:06 UTC
6e381d3aff89e09d13bd855ed6e18b0aa6f1e441
1 file changed
+1
-1
diffcore-rename.c
+1
-1
@@ -493,7 +493,7 @@ void diffcore_rename(struct diff_options *options)
493
if ((num_create > rename_limit && num_src > rename_limit) ||
494
(num_create * num_src > rename_limit * rename_limit)) {
495
if (options->warn_on_too_large_rename)
496
- warning("too many files, skipping inexact rename detection");
496
+ warning("too many files (created: %d deleted: %d), skipping inexact rename detection", num_create, num_src);
497
goto cleanup;
498
}
499