Code

pack-objects: extend --local to mean ignore non-local loose objects too
[git.git] / diffcore-rename.c
index 1369a5ec45349c1ef04e4df2d7d7d4dd28cd3596..168a95b541c2d6a4679115ebc9f30b1016645b19 100644 (file)
@@ -492,7 +492,8 @@ void diffcore_rename(struct diff_options *options)
                rename_limit = 32767;
        if ((num_create > rename_limit && num_src > rename_limit) ||
            (num_create * num_src > rename_limit * rename_limit)) {
-               warning("too many files, skipping inexact rename detection");
+               if (options->warn_on_too_large_rename)
+                       warning("too many files (created: %d deleted: %d), skipping inexact rename detection", num_create, num_src);
                goto cleanup;
        }