]> git.ipfire.org Git - thirdparty/git.git/commit
sequencer: lib'ify sequencer_pick_revisions()
authorJohannes Schindelin <johannes.schindelin@gmx.de>
Fri, 26 Aug 2016 13:47:10 +0000 (15:47 +0200)
committerJunio C Hamano <gitster@pobox.com>
Mon, 29 Aug 2016 20:15:14 +0000 (13:15 -0700)
commitb9b946d4a4e9e30bc0dba9ce3ff81ab3d3666632
tree11fca34e84d0682daad778ae6f4f7481cdcb88a3
parentd5cb9cbd64165153a318e1049f8bf14b09a16b11
sequencer: lib'ify sequencer_pick_revisions()

Instead of dying there, let the caller high up in the callchain notice
the error and handle it (by dying, still).

The function sequencer_pick_revisions() has only two callers,
cmd_revert() and cmd_cherry_pick(), both of which check the return
value and react appropriately upon errors.

So this is a safe conversion to make sequencer_pick_revisions()
callable from new callers that want it not to die, without changing
the external behaviour of anything existing.

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
sequencer.c