]> git.ipfire.org Git - thirdparty/git.git/commit
sequencer: simplify handing of fixup with conflicts
authorPhillip Wood <phillip.wood@dunelm.org.uk>
Tue, 30 Jun 2026 15:28:56 +0000 (16:28 +0100)
committerJunio C Hamano <gitster@pobox.com>
Tue, 30 Jun 2026 19:03:14 +0000 (12:03 -0700)
commitab853e67e6be4f8a8ef9cb4d4e85011c27c00593
tree87af234d6598a8d9ec799d7b454b9f98664adfd2
parent3195ba71ab3bb45b5ca95cffdd887102ea469c7f
sequencer: simplify handing 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 so we can simplify
the code by removing the conditional call to intend_to_amend() and
call it error_with_patch() instead.

Signed-off-by: Phillip Wood <phillip.wood@dunelm.org.uk>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
sequencer.c