Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
diffcore-rename: favour identical basenames
[gitweb.git]
/
diff.c
diff --git
a/diff.c
b/diff.c
index 1d234d361d29605c49da8fa177ebb563cf3066c1..4aa9bbc0116ac9081dee7aa8aa85507c401b5e53 100644
(file)
--- a/
diff.c
+++ b/
diff.c
@@
-2201,6
+2201,8
@@
int diff_opt_parse(struct diff_options *options, const char **av, int ac)
options->detect_rename = DIFF_DETECT_RENAME;
}
else if (!prefixcmp(arg, "-C")) {
+ if (options->detect_rename == DIFF_DETECT_COPY)
+ options->find_copies_harder = 1;
if ((options->rename_score =
diff_scoreopt_parse(arg)) == -1)
return -1;