We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 02c5cba commit 03b9d56Copy full SHA for 03b9d56
diff.c
@@ -1515,9 +1515,10 @@ void diff_setup(struct diff_options *options)
1515
1516
int diff_setup_done(struct diff_options *options)
1517
{
1518
- if ((options->find_copies_harder &&
1519
- options->detect_rename != DIFF_DETECT_COPY) ||
1520
- (0 <= options->rename_limit && !options->detect_rename))
+ if (options->find_copies_harder)
+ options->detect_rename = DIFF_DETECT_COPY;
+
1521
+ if ((0 <= options->rename_limit && !options->detect_rename)
1522
return -1;
1523
1524
if (options->output_format & (DIFF_FORMAT_NAME |
0 commit comments