From: Taylor Blau <me@ttaylorr.com>
To: Junio C Hamano <gitster@pobox.com>
Cc: git@vger.kernel.org, Derrick Stolee <stolee@gmail.com>
Subject: Re: [PATCH] midx: state what failed correctly
Date: Thu, 16 Apr 2026 17:17:38 -0400 [thread overview]
Message-ID: <aeFR8qOTBGA922eY@nand.local> (raw)
In-Reply-To: <xmqqik9qzlv0.fsf@gitster.g>
On Thu, Apr 16, 2026 at 01:33:23PM -0700, Junio C Hamano wrote:
> ---
> midx.c | 26 +++++++++++++++++---------
> 1 file changed, 17 insertions(+), 9 deletions(-)
The approach here seems very reasonable to me, and the implementation
matches it faithfully. I think that this makes sense to pick up, though
I suspect that there are other quality-of-life fixes that we could write
on top, e.g., to suppress duplicate "failed to load"-like messages,
which I recall having to deal with in the past.
The patch looks good to me, with one small nitpick:
> @@ -339,7 +347,7 @@ static struct multi_pack_index *load_midx_chain_fd_st(struct odb_source *source,
> strbuf_reset(&buf);
> get_split_midx_filename_ext(source, &buf,
> layer.hash, MIDX_EXT_MIDX);
> - m = load_multi_pack_index_one(source, buf.buf);
> + m = load_multi_pack_index_one(source, buf.buf, 0);
Here you specify "missing_ok" as "0", but...
> @@ -387,7 +395,7 @@ struct multi_pack_index *load_multi_pack_index(struct odb_source *source)
>
> get_midx_filename(source, &midx_name);
>
> - m = load_multi_pack_index_one(source, midx_name.buf);
> + m = load_multi_pack_index_one(source, midx_name.buf, true);
Here you specify it as "true". Given the above I would have expected "1"
here, but I think that this hunk is preferable, and the earlier one
should use "false" instead.
Thanks,
Taylor
prev parent reply other threads:[~2026-04-16 21:17 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-04-16 20:33 [PATCH] midx: state what failed correctly Junio C Hamano
2026-04-16 21:17 ` Taylor Blau [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=aeFR8qOTBGA922eY@nand.local \
--to=me@ttaylorr.com \
--cc=git@vger.kernel.org \
--cc=gitster@pobox.com \
--cc=stolee@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.