Skip to content

Commit 8f7759d

Browse files
agrngitster
authored andcommitted
sequencer: use the "octopus" merge strategy without forking
This teaches the sequencer 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 2b8f449 commit 8f7759d

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

sequencer.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2013,6 +2013,9 @@ static int do_pick_commit(struct repository *r,
20132013
if (!strcmp(opts->strategy, "resolve")) {
20142014
repo_read_index(r);
20152015
res |= merge_strategies_resolve(r, common, oid_to_hex(&head), remotes);
2016+
} else if (!strcmp(opts->strategy, "octopus")) {
2017+
repo_read_index(r);
2018+
res |= merge_strategies_octopus(r, common, oid_to_hex(&head), remotes);
20162019
} else
20172020
res |= try_merge_command(r, opts->strategy,
20182021
opts->xopts_nr, (const char **)opts->xopts,

0 commit comments

Comments
 (0)