]> git.99rst.org Git - git.git/commit
sequencer: remove unnecessary condition in pick_one_commit()
authorPhillip Wood <redacted>
Wed, 15 Jul 2026 15:22:00 +0000 (16:22 +0100)
committerJunio C Hamano <redacted>
Wed, 15 Jul 2026 19:16:21 +0000 (12:16 -0700)
commit871f9009d3fca0ac70d4df7f75c82b1e31213add
tree6da769b335de6563d63aa739a2db2fe78684e1da
parentdc0e2ac15dc5c3770b2117535a0b316e3bf6aa7a
sequencer: remove unnecessary condition in pick_one_commit()

item->commit holds the commit to be picked and so it must be non-NULL
otherwise pick_one_commit() would not know which commit to pick.
It is also unconditionally dereferenced in do_pick_commit() which is
called at the top of this function. Therefore the check to see if it
is non-NULL is superfluous.

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