]> git.99rst.org Git - git.git/commit
sequencer: simplify handling of fixup with conflicts
authorPhillip Wood <redacted>
Wed, 15 Jul 2026 15:21:59 +0000 (16:21 +0100)
committerJunio C Hamano <redacted>
Wed, 15 Jul 2026 19:16:21 +0000 (12:16 -0700)
commitdc0e2ac15dc5c3770b2117535a0b316e3bf6aa7a
tree2515ac9d55ba27687a47c2dbbc7938a6f83853d8
parent6bb740dffb908a670e52b88f309f521f6d29a912
sequencer: simplify handling of fixup with conflicts

Commit e032abd5a0 (rebase: fix rewritten list for failed pick,
2023-09-06) introduced an early return when res == -1, so if
we enter this conditional block then res is positive. After the
last couple of commits the only possible positive value is 1. That
means we can simplify the code by removing the conditional call to
intend_to_amend() and have error_failed_squash() request that it is
called in error_with_patch() instead.

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