]> git.ipfire.org Git - thirdparty/git.git/commit
sequencer: replace error() with BUG() in update_squash_messages ()
authorLidong Yan <502024330056@smail.nju.edu.cn>
Tue, 3 Jun 2025 02:01:13 +0000 (02:01 +0000)
committerJunio C Hamano <gitster@pobox.com>
Tue, 3 Jun 2025 15:33:01 +0000 (08:33 -0700)
commit8b34b6a22038765e601692bee2e299eea14441d6
tree215630a4588a555c7026077e71d0bcb0cfc179ec
parentb07857f7dcffee4d3b428df8dce6c9b49a57c9c1
sequencer: replace error() with BUG() in update_squash_messages ()

In sequencer.c, caller only pass TODO_SQUASH or TODO_FIXUP to
update_squash_messages(), any other command passed in should be
considered as BUG. Replace `return error('unknown command')`
with `BUG('not a FIXUP or SQUASH')`.

Signed-off-by: Lidong Yan <502024330056@smail.nju.edu.cn>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
sequencer.c