builtin/multi-pack-index.c: inline 'flags' with options
commitf7c4d63e35b4358f93efc8d2f124056c246f912e
authorTaylor Blau <me@ttaylorr.com>
Tue, 30 Mar 2021 15:03:47 +0000 (30 11:03 -0400)
committerJunio C Hamano <gitster@pobox.com>
Tue, 30 Mar 2021 19:16:56 +0000 (30 12:16 -0700)
treeac29d4935dc8d1b20b379521b7280327f9136bdb
parent11875561bf29cadc91fe43b7383ae05e4ab112b5
builtin/multi-pack-index.c: inline 'flags' with options

Subcommands of the 'git multi-pack-index' command (e.g., 'write',
'verify', etc.) will want to optionally change a set of shared flags
that are eventually passed to the MIDX libraries.

Right now, options and flags are handled separately. That's fine, since
the options structure is never passed around. But a future patch will
make it so that common options shared by all sub-commands are defined in
a common location. That means that "flags" would have to become a global
variable.

Group it with the options structure so that we reduce the number of
global variables we have overall.

Signed-off-by: Taylor Blau <me@ttaylorr.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/multi-pack-index.c