diff options
author | Johannes Schindelin <johannes.schindelin@gmx.de> | 2016-10-14 15:15:56 +0200 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2016-10-17 11:52:23 -0700 |
commit | ee624c0d3ff54e86a44cddf1d4ea6278b7a4f65c (patch) | |
tree | f6d46230443b565597d9ebb19be43ec4181d861f /sequencer.h | |
parent | a23ca1b8dc42ffd4de2ef30d67ce1e21ded29886 (diff) | |
download | git-ee624c0d3ff54e86a44cddf1d4ea6278b7a4f65c.tar.gz |
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>
Diffstat (limited to 'sequencer.h')
-rw-r--r-- | sequencer.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sequencer.h b/sequencer.h index 5ed5cb1d97..db425ad1a6 100644 --- a/sequencer.h +++ b/sequencer.h @@ -47,6 +47,7 @@ struct replay_opts { /* Only used by REPLAY_NONE */ struct rev_info *revs; }; +#define REPLAY_OPTS_INIT { -1, -1 } int sequencer_pick_revisions(struct replay_opts *opts); |