]> git.ipfire.org Git - thirdparty/git.git/commitdiff
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)
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>

No differences found