From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=209.85.160.52 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796145183; b=Sop5EmOLPK11Kv/xKUnaWNqHwoA3Y0LA67hqLgqIOvH3PMEohWuMMGR2BwZW2Rwm7RXt 40nVVTIxqC6Ljz48lgJt6bX67uVSSmeQ0cWeHigLoMifM/ukw8t4Vnt7VkORuJLm7nzYE rVE82dTjTIm4Vb81HnBKp4yrj0TcuaW1/tsqs9MeIwKbnmQum5BqoTu5YDjt3rqplkDJj ThSdt/W6kL02Pe2zmj/RvrKLk1R5JOxSx99t4+vxwLv4OcT4fgEQlevsbvkAVn+cpOViX KxASedJXhO7ltOpq/BJIJfaTeG6bmBj9xdRhEXhwC7z6hd1g3JEFECPNcQC3bXbHpNw== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796145183; h=DMARC-Filter:Received:DKIM-Signature:X-Google-DKIM-Signature: X-Gm-Message-State:X-Gm-Gg:X-Received:Received:Date:From:To:Cc: Subject:Message-ID:References:MIME-Version:Content-Type: Content-Disposition:In-Reply-To; bh=F8Jl9NJfDwUUHcUPHKtTtlqooVDX4S071d32wuBs7xc=; b=MAtxMPvB5FmVsZb7X7yOBIFtSWpIbK+M6f5t7JHM8QvQ+RyIPcB5S/733Z+SjVbw/51v jwLP5+0MciQpa+HB4nTuWtQhd9JyZi8AQ7quMpLnAIQv50u0aV/QlpO1h0B1DdNlC0Fu+ tXeCzLbF12ZOSh39Fu+zW5toMqNe/qib/kzUYwxY+LPzrAoxhT3KtGeFgTIGzSBHqfRhy 7N4iHEn5mqFY8cULHRlAkEGLBzWD30OGLTY3RKK9Pxt/6HFWWQOFiXqyVzNsusu3hVJrY dg2sqzQZT6H2k5QLcNU4WNFb/Inaj/SmgARyrVuLmKSsjYraBCAHsGGAjrH0CLWih5A== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20260707 header.b=hkiuBFmo; arc=none smtp.remote-ip=209.85.160.52 Received: from mail-oa1-f52.google.com (mail-oa1-f52.google.com [209.85.160.52]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 60DAB606A320 for ; Tue, 1 Dec 2026 17:13:03 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 60DAB606A320 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20260707 header.b=hkiuBFmo Received: by mail-oa1-f52.google.com with SMTP id 586e51a60fabf-48e9476e26aso4249727fac.3 for ; Tue, 01 Dec 2026 09:13:03 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20260707; t=1796145182; x=1796749982; darn=vger.kernel.org; h=in-reply-to:content-disposition:content-type:mime-version :references:message-id:subject:cc:to:from:date:from:to:cc:subject :date:message-id:reply-to:content-type; bh=F8Jl9NJfDwUUHcUPHKtTtlqooVDX4S071d32wuBs7xc=; b=hkiuBFmo3RDEBMJYySoZJcezQSI15jsrjQjrH7PSdzzr8pCSPncRJHEtqN1i988R97 0E8bbQLzO8RoN3P1kFCN2mFASxqrGRQuZocVVAIqN6o+fzlMEvQ0Myl6zshcSU2XZgz9 Q59Ln4cet44/abWLwMQr+9XAR2pGAvltUQXEHD6zHh5DriN0ntoA9xWQPggI2nPf7djq ui5ZzMoXxjeN++g7JGr4dVICs+Me1mWn66maMtF2ScfrKRpfT84lGzq3lYz3PtT+07sz 2nKGIuGRoi60vjkmnKr2KX/A3jSPLTV+McTDG0Pibp4yowYRgqNc8oR8kc+XmLmHvxTh mlrg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1796145182; x=1796749982; h=in-reply-to:content-disposition:content-type:mime-version :references:message-id:subject:cc:to:from:date:x-gm-gg :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to :content-type; bh=F8Jl9NJfDwUUHcUPHKtTtlqooVDX4S071d32wuBs7xc=; b=gh9kPC4W4iUpEWG/A5/6GMjRgnjAqmaZVyM90SwL8N1g/IfSBQ7T4FTptjMXnlZ/J/ zJIxbZNqYqrqMXSxVAzS2ifKyrxQDvnCS7U5GG/mgb/kATo0ABhgWVjYgL/LkR+eVjgp 2c+oT+Z82aqIoitPlbAtSQtSuDThtysk9/riofD0nr+gRmCk2947HIjEMvymL531cCg2 GHSmEWbMgRespQ6VIwssYcJX0hMRDSW8Zx++xUQIIwI0yfOMmwpitiZjhr5I7EPldNRd r/5V0T5+MRkH31iIWXCTSf8Gl+s4gMT0sPTuC6Jb6NCCUrentVgt2na2rsv26E/Rmbrg tlNg== X-Gm-Message-State: APuU4Z97yquN5Z1GJDxueOqHte0By3Qi8y/LhRUssqcYd8u2GiI79Scp pS3OfdMkKVlzftpodDGa57/LYL5OOneZu2az+NtWHC756R6J0LVU0ag13+V1Nw== X-Gm-Gg: AZFdTZfzKF9yZUwtC5pRw8KOPTUz3df2hqXP9bJZpljbA0/IabEBdF/yPkVSoKUiv9f AI2g3etzndEga7bHkCKhQngkHJhrqCKZkTJOEqRYsy1EoK3uEtrcYQsBc9ow1N5KWxQ/3ahNbnW UXsORg/9460vZI1wZK5+s2dR0jb2z8H7M4Emwn9QLIcmsfg04R+1wlkauP2LSLACvWeR+6LG/mg CR0EtqxpVkaIliCmaxpKGeJWp67ai4Qi0bBhwmKsKk1rlmei/YT4n6SqzUkJVYAs+gLXdxt9mhx 4UEqgMG4vu7p78G68wl4aLQlNfeOMyH3H1VCjbRCgYOkrrPQ9jdP7CU8BObEQlZZ/MnZiW13F9C HshaM4suTdCa0Hx3iUpI0adnV60q/1jMl9O1MlGktLWDm0/Hpvv3uq+fUguG3xFeCju6MPlpBnM txvBUTGdvJQCDCd2hc6rt045SQJfjeLpzMnvW6qbUaNr+gzv5+QE8XXBaRlb+AUJj2hKoSg74mJ 0udWEjHDzJX6zkgeW8nheNA1gkbVCtxuuR9f7Zh1LJePSOo8PTJs1XxmeQHwUmD4gm4kSmS7gea JWwHV0gGdCUFHfKAnLfrr2pOABlfWxd6IUvitOTt6FFcmPZFLP7c X-Received: by 2002:a05:6871:7425:b0:4da:8fb9:1e75 with SMTP id 586e51a60fabf-4da8fd7a7abmr4476776fac.16.1796145182207; Tue, 01 Dec 2026 09:13:02 -0800 (PST) Received: from localhost ([136.51.44.64]) by smtp.gmail.com with ESMTPSA id 586e51a60fabf-4bc5f7ae7dcsm31110796fac.8.2026.12.01.09.13.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 01 Dec 2026 09:13:01 -0800 (PST) Date: Tue, 1 Dec 2026 11:13:00 -0600 From: Justin Tobler To: Patrick Steinhardt Cc: git@vger.kernel.org Subject: Re: [PATCH 4/5] builtin/multi-pack-index: simplify how common options are wired up Message-ID: References: <1c16a0988239253b3695c68c138b4b71ccc00de9.1796075503.git.jltobler@gmail.com> X-Mailing-List: git@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: 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