sequencer: remove unreachable exit condition in pick_commits()
commit63642d58b4b28c3caba6d5ab0c3aa98c4ce54eaa
authorOswald Buddenhagen <oswald.buddenhagen@gmx.de>
Tue, 12 Sep 2023 10:55:41 +0000 (12 12:55 +0200)
committerJunio C Hamano <gitster@pobox.com>
Wed, 13 Sep 2023 00:32:09 +0000 (12 17:32 -0700)
treefbdf62b228c693fe55074b44aad7d9356fa95b5b
parent43c8a30d150ecede9709c1f2527c8fba92c65f40
sequencer: remove unreachable exit condition in pick_commits()

This was introduced by 56dc3ab04 ("sequencer (rebase -i): implement the
'edit' command", 2017-01-02), and was pointless from the get-go: all
early exits from the loop above are returns, so todo_list->current ==
todo_list->nr is an invariant after the loop.

Signed-off-by: Oswald Buddenhagen <oswald.buddenhagen@gmx.de>
Acked-by: Phillip Wood <phillip.wood@dunelm.org.uk>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
sequencer.c