]> git.ipfire.org Git - thirdparty/git.git/commit - sequencer.c
rebase -r: support merge strategies other than `recursive`
authorJohannes Schindelin <johannes.schindelin@gmx.de>
Wed, 31 Jul 2019 15:18:47 +0000 (08:18 -0700)
committerJunio C Hamano <gitster@pobox.com>
Wed, 31 Jul 2019 19:24:07 +0000 (12:24 -0700)
commite145d993478befd0db6999822aa31d422b283a3b
treeadf27954b5199a27cef653ba7fa2f7d5f5baa508
parent4e6023b13ae1159277a7c3053f8d074c23456812
rebase -r: support merge strategies other than `recursive`

We already support merge strategies in the sequencer, but only for
`pick` commands.

With this commit, we now also support them in `merge` commands. The
approach is simple: if any merge strategy option is specified, or if any
merge strategy other than `recursive` is specified, we simply spawn the
`git merge` command. Otherwise, we handle the merge in-process just as
before.

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Documentation/git-rebase.txt
builtin/rebase.c
sequencer.c
t/t3422-rebase-incompatible-options.sh
t/t3430-rebase-merges.sh