On 26/12/01 11:58AM, Patrick Steinhardt wrote:
> On Mon, Nov 30, 2026 at 03:55:00PM -0600, Justin Tobler wrote:
> > @@ -154,8 +147,7 @@ static int cmd_multi_pack_index_write(int argc, const char **argv,
> > const char *prefix,
> > struct repository *repo)
> > {
> > - struct option *options;
> > - static struct option builtin_multi_pack_index_write_options[] = {
> > + static struct option options[] = {
> > OPT_STRING(0, "preferred-pack", &opts.preferred_pack,
> > N_("preferred-pack"),
> > N_("pack for reuse when computing a multi-pack bitmap")),
> > @@ -172,6 +164,7 @@ static int cmd_multi_pack_index_write(int argc, const char **argv,
> > N_("write multi-pack index containing only given indexes")),
> > OPT_FILENAME(0, "refs-snapshot", &opts.refs_snapshot,
> > N_("refs snapshot for selecting bitmap commits")),
> > + MULTI_PACK_INDEX_COMMON_OPTIONS(&opts),
> > OPT_END(),
> > };
> > struct odb_source_packed *packed_source;
>
> I think this causes a slight change in that the common opitons are now
> at the end of these options, whereas they have been at the beginning
> beforehand. Doesn't really matter much, but it can also easily be
> avoided by adding the common options first.
Good catch. I'll move the common options to the front in the next
version.
-Justin