Re: [PATCH v2 5/5] builtin/multi-pack-index: de-globalize options handling
- From
Patrick Steinhardt <ps@pks.im>
- Date
- Dec 2, 2026, 16:04 UTC
- Message-ID
- <axBBfsRueKV8T-rW@pks.im>
- In-Reply-To
- <46a59a5daf5200f840832cbf25430a9a6cbfedad.1796147221.git.jltobler@gmail.com>
On Tue, Dec 01, 2026 at 12:16:16PM -0600, Justin Tobler wrote:
Show 19 quoted lines
> diff --git a/builtin/multi-pack-index.c b/builtin/multi-pack-index.c
> index 7dfae23411bc..ac99fec7d3c5 100644
> --- a/builtin/multi-pack-index.c
> +++ b/builtin/multi-pack-index.c
> @@ -62,7 +62,7 @@ static char const * const builtin_multi_pack_index_usage[] = {
> NULL
> };
>
> -static struct opts_multi_pack_index {
> +struct opts_multi_pack_index {
> const char *object_dir;
> const char *preferred_pack;
> const char *incremental_base;
> @@ -70,11 +70,11 @@ static struct opts_multi_pack_index {
> unsigned long batch_size;
> unsigned flags;
> int stdin_packs;
> -} opts;
> +};Nice, this patch looks simpler, as well, as we don't have to free `object_dir` anymore.
Patrick