summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 02c5cba)
raw | patch | inline | side by side (parent: 02c5cba)
author | Junio C Hamano <junkio@cox.net> | |
Wed, 9 Aug 2006 20:17:19 +0000 (13:17 -0700) | ||
committer | Junio C Hamano <junkio@cox.net> | |
Wed, 9 Aug 2006 20:17:19 +0000 (13:17 -0700) |
Signed-off-by: Junio C Hamano <junkio@cox.net>
diff.c | patch | blob | history |
index 895c1376559cc2aaa1e6c25361a9a6b831c9a18a..02a409d9647f1093310a7ab3325fad5c2c3951ad 100644 (file)
--- a/diff.c
+++ b/diff.c
int diff_setup_done(struct diff_options *options)
{
- if ((options->find_copies_harder &&
- options->detect_rename != DIFF_DETECT_COPY) ||
- (0 <= options->rename_limit && !options->detect_rename))
+ if (options->find_copies_harder)
+ options->detect_rename = DIFF_DETECT_COPY;
+
+ if ((0 <= options->rename_limit && !options->detect_rename)
return -1;
if (options->output_format & (DIFF_FORMAT_NAME |