]> git.ipfire.org Git - thirdparty/git.git/commit - sequencer.h
sequencer: get rid of the subcommand field
authorJohannes Schindelin <johannes.schindelin@gmx.de>
Fri, 21 Oct 2016 12:24:55 +0000 (14:24 +0200)
committerJunio C Hamano <gitster@pobox.com>
Fri, 21 Oct 2016 16:32:34 +0000 (09:32 -0700)
commit2863584f5cf98c5f768e24f4841e3df14cbea59a
tree2b27392cd29da9c377e95510e065944bfc71c215
parente635d5ceb7bb4e51d2121b74262ea8fffd5cda4e
sequencer: get rid of the subcommand field

The subcommands are used exactly once, at the very beginning of
sequencer_pick_revisions(), to determine what to do. This is an
unnecessary level of indirection: we can simply call the correct
function to begin with. So let's do that.

While at it, ensure that the subcommands return an error code so that
they do not have to die() all over the place (bad practice for library
functions...).

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