From: Linus Torvalds Date: Mon, 27 Oct 2008 20:06:16 +0000 (-0700) Subject: Add file delete/create info when we overflow rename_limit X-Git-Tag: v1.6.0.4~30 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=6e381d3aff89e09d13bd855ed6e18b0aa6f1e441;p=git.git 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 Signed-off-by: Junio C Hamano --- diff --git a/diffcore-rename.c b/diffcore-rename.c index 1b2ebb400..168a95b54 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; }