Unverified Commit afc5124b by Edward Thomson Committed by GitHub

Merge pull request #4539 from pks-t/pks/diff_renames_with_rewrites

diff_tform: fix rename detection with rewrite/delete pair
parents 952cf714 ce7080a0
...@@ -686,8 +686,10 @@ static bool is_rename_target( ...@@ -686,8 +686,10 @@ static bool is_rename_target(
break; break;
} }
if (FLAG_SET(opts, GIT_DIFF_FIND_RENAMES_FROM_REWRITES) && if (FLAG_SET(opts, GIT_DIFF_FIND_RENAMES_FROM_REWRITES) &&
delta->similarity < opts->rename_from_rewrite_threshold) delta->similarity < opts->rename_from_rewrite_threshold) {
delta->flags |= GIT_DIFF_FLAG__TO_SPLIT;
break; break;
}
return false; return false;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment