Skip to content

Commit e9346dd

Browse files
agrngitster
authored andcommitted
merge: use the "octopus" strategy without forking
This teaches `git merge' to invoke the "octopus" strategy with a function call instead of forking. Signed-off-by: Alban Gruin <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent cf3d785 commit e9346dd

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

builtin/merge.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -744,6 +744,9 @@ static int try_merge_strategy(const char *strategy, struct commit_list *common,
744744
} else if (!strcmp(strategy, "resolve"))
745745
return merge_strategies_resolve(the_repository, common,
746746
head_arg, remoteheads);
747+
else if (!strcmp(strategy, "octopus"))
748+
return merge_strategies_octopus(the_repository, common,
749+
head_arg, remoteheads);
747750
else {
748751
return try_merge_command(the_repository,
749752
strategy, xopts_nr, xopts,

0 commit comments

Comments
 (0)