Skip to content

Commit 6f10a09

Browse files
Ben Peartgitster
authored andcommitted
merge: pass aggressive when rename detection is turned off
Set aggressive flag in git_merge_trees() when rename detection is turned off. This allows read_tree() to auto resolve more cases that would have otherwise been handled by the rename detection. Reviewed-by: Johannes Schindelin <[email protected]> Signed-off-by: Ben Peart <[email protected]> Reviewed-by: Elijah Newren <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 85b4603 commit 6f10a09

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

merge-recursive.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -356,6 +356,7 @@ static int git_merge_trees(struct merge_options *o,
356356
o->unpack_opts.fn = threeway_merge;
357357
o->unpack_opts.src_index = &the_index;
358358
o->unpack_opts.dst_index = &tmp_index;
359+
o->unpack_opts.aggressive = !merge_detect_rename(o);
359360
setup_unpack_trees_porcelain(&o->unpack_opts, "merge");
360361

361362
init_tree_desc_from_tree(t+0, common);

0 commit comments

Comments
 (0)