Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
diff-files: -1/-2/-3 to diff against unmerged stage.
[gitweb.git]
/
diffcore-rename.c
diff --git
a/diffcore-rename.c
b/diffcore-rename.c
index 6a9d95d0593f26c5e698c5e593a9efc287c8e399..dba965c0b4006251b1da04465d319c5fe9997ea4 100644
(file)
--- a/
diffcore-rename.c
+++ b/
diffcore-rename.c
@@
-307,6
+307,9
@@
void diffcore_rename(struct diff_options *options)
if (rename_count == rename_dst_nr)
goto cleanup;
+ if (minimum_score == MAX_SCORE)
+ goto cleanup;
+
num_create = (rename_dst_nr - rename_count);
num_src = rename_src_nr;
mx = xmalloc(sizeof(*mx) * num_create * num_src);