]> git.99rst.org Git - git.git/commit
sequencer: use an enum to represent result of picking a commit
authorPhillip Wood <redacted>
Wed, 15 Jul 2026 15:22:02 +0000 (16:22 +0100)
committerJunio C Hamano <redacted>
Wed, 15 Jul 2026 19:16:21 +0000 (12:16 -0700)
commita7dbb3a462eab29d5ca79c9cba175e0baeff6751
tree5dd97942acba1a482409e309477743ee04b1c53d
parent034deee6c7630fad36ce2db5b9d1ab4afd78a09e
sequencer: use an enum to represent result of picking a commit

Rather than using an integer where -1 is an error, 0 is success and 1
indicates there were conflicts, use an enum. This is clearer and lets
us add a separate return value for commits that are dropped because
they become empty in the next commit.

Note we continue to use "return error(...)" to return errors and
take advantage of C's lax typing of enums

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