]> git.ipfire.org Git - thirdparty/git.git/commit
sequencer: use static initializers for replay_opts
authorJohannes Schindelin <johannes.schindelin@gmx.de>
Fri, 14 Oct 2016 13:15:56 +0000 (15:15 +0200)
committerJunio C Hamano <gitster@pobox.com>
Mon, 17 Oct 2016 18:52:23 +0000 (11:52 -0700)
commitee624c0d3ff54e86a44cddf1d4ea6278b7a4f65c
treef6d46230443b565597d9ebb19be43ec4181d861f
parenta23ca1b8dc42ffd4de2ef30d67ce1e21ded29886
sequencer: use static initializers for replay_opts

This change is not completely faithful: instead of initializing all fields
to 0, we choose to initialize command and subcommand to -1 (instead of
defaulting to REPLAY_REVERT and REPLAY_NONE, respectively). Practically,
it makes no difference at all, but future-proofs the code to require
explicit assignments for both fields.

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