]> git.ipfire.org Git - thirdparty/git.git/commit
sequencer: remove unnecessary "or" in pick_one_commit()
authorPhillip Wood <phillip.wood@dunelm.org.uk>
Tue, 30 Jun 2026 15:28:55 +0000 (16:28 +0100)
committerJunio C Hamano <gitster@pobox.com>
Tue, 30 Jun 2026 19:03:14 +0000 (12:03 -0700)
commit3195ba71ab3bb45b5ca95cffdd887102ea469c7f
treec6470d1ecae7d76bd5a8aec1879ab6178f851c0d
parent8b7330ca47261e414dd72e6ee6233dbb355ce7cf
sequencer: remove unnecessary "or" in pick_one_commit()

If error_with_patch(..., res, ...) succeeds then it returns "res", if
it fails then it returns -1. This means that or-ing the return value
with "res" is pointless the result is the same as the return value.

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