]> git.99rst.org Git - git.git/commit
sequencer: be more careful with external merge
authorPhillip Wood <redacted>
Wed, 15 Jul 2026 15:21:56 +0000 (16:21 +0100)
committerJunio C Hamano <redacted>
Wed, 15 Jul 2026 19:16:21 +0000 (12:16 -0700)
commit1da85922fddd6f693739385fa08c0d15ad066247
tree671705ac80560f9d532783799ccdfe4b1654307a
parent88101d339a07c9ccc46ac37f2a5e922fae053a71
sequencer: be more careful with external merge

If an external merge strategy cannot merge (for example because it
would overwrite an untracked file) it exits with a non-zero exit
code other than 1. This should be treated differently from a merge
with conflicts, which is signaled by an exit code of 1, because, as
the merge failed, we need to reschedule the last pick. The caller
expects us to return -1 in this case. Also reschedule without trying
to merge if the commit message cannot be written as that prevents us
from successfully picking the commit.

Signed-off-by: Phillip Wood <redacted>
Signed-off-by: Junio C Hamano <redacted>
sequencer.c
t/t3404-rebase-interactive.sh
git clone https://git.99rst.org/PROJECT