]> git.ipfire.org Git - thirdparty/git.git/commit
amend! sequencer: remove unnecessary "or" in pick_one_commit()
authorJunio C Hamano <gitster@pobox.com>
Tue, 30 Jun 2026 19:06:32 +0000 (12:06 -0700)
committerJunio C Hamano <gitster@pobox.com>
Tue, 30 Jun 2026 19:06:32 +0000 (12:06 -0700)
commitffb009b251e47e0640232c6c76bf18566be16785
tree45af0e35180a259ac93ddbc075b801a1070272d9
parente9e709aad5120cb140a6a38f91fdb8785bade028
amend! sequencer: remove unnecessary "or" in pick_one_commit()

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 as 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>