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 <johannes.schindelin@gmx.de> Signed-off-by: Ben Peart <benpeart@microsoft.com> Reviewed-by: Elijah Newren <newren@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
parent
85b460305c
commit
6f10a09e0a
@ -356,6 +356,7 @@ static int git_merge_trees(struct merge_options *o,
|
||||
o->unpack_opts.fn = threeway_merge;
|
||||
o->unpack_opts.src_index = &the_index;
|
||||
o->unpack_opts.dst_index = &tmp_index;
|
||||
o->unpack_opts.aggressive = !merge_detect_rename(o);
|
||||
setup_unpack_trees_porcelain(&o->unpack_opts, "merge");
|
||||
|
||||
init_tree_desc_from_tree(t+0, common);
|
||||
|
Loading…
Reference in New Issue
Block a user