Skip to content

Commit 54cf5d2

Browse files
phillipwoodgitster
authored andcommitted
merge-tree: only use basic merge config
Commit 9c93ba4 (merge-recursive: honor diff.algorithm, 2024-07-13) replaced init_merge_options() with init_basic_merge_config() for use in plumbing commands and init_ui_merge_config() for use in porcelain commands. As "git merge-tree" is a plumbing command it should call init_basic_merge_config() rather than init_ui_merge_config(). The merge ort machinery ignores "diff.algorithm" so the behavior is unchanged by this commit but it future proofs us against any future changes to init_ui_merge_config(). Signed-off-by: Phillip Wood <[email protected]> Acked-by: Elijah Newren <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 1b0e5f4 commit 54cf5d2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

builtin/merge-tree.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -576,7 +576,7 @@ int cmd_merge_tree(int argc,
576576
};
577577

578578
/* Init merge options */
579-
init_ui_merge_options(&o.merge_options, the_repository);
579+
init_basic_merge_options(&o.merge_options, the_repository);
580580

581581
/* Parse arguments */
582582
original_argc = argc - 1; /* ignoring argv[0] */

0 commit comments

Comments
 (0)