git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: MIDX woes, was Re: [ANNOUNCE] Git v2.54.0-rc2

From
Jeff King <peff@peff.net>
Date
Apr 16, 2026, 23:23 UTC
Message-ID
<20260416232319.GA1904316@coredump.intra.peff.net>
In-Reply-To
<xmqqqzoezmt9.fsf@gitster.g>
On Thu, Apr 16, 2026 at 01:12:50PM -0700, Junio C Hamano wrote:
> Looking at the later part of load_multi_pack_index_one() function,
> it is full of die() calls, not prepared to degrade gracefully at
> all.

OK, I confess I did not look past the two goto calls below the lines I touched, since I didn't think we'd be applying it immediately anyway.

Show 10 quoted lines
> The reason why I do not think reword is worth doing is that as far
> as this function (i.e., "Here is an MIDX file---please read it and
> give me struct multi_pack_index back") is concerned, these error
> returns are giving diagnosis on the nature of errors.  Sometimes we
> cannot learn the length of the file, sometimes we find that the file
> is unreasonably short, sometimes it is not sorted properly, etc.
> None of the existing "error + cleanup" says "we are continuing
> anyway" and that is good.  The decision to keep going without using
> midx file (or not) belongs to the caller, so if we wanted to say
> that, we should say so in the caller, not here.
Yep, I agree with all of that.
-Peff
Previous: Junio C HamanoNext: Junio C Hamano
Message 17 of 30 in “[ANNOUNCE] Git v2.54.0-rc2”
  1. Junio C HamanoApr 14, 2026
  2. MIDX woes, was Re: [ANNOUNCE] Git v2.54.0-rc2Johannes Schindelin, Apr 15, 2026
  3. Junio C HamanoApr 15, 2026
  4. Jeff KingApr 16, 2026
  5. Jeff KingApr 16, 2026
  6. Derrick StoleeApr 16, 2026
  7. Junio C HamanoApr 16, 2026
  8. Taylor BlauApr 16, 2026
  9. Derrick StoleeApr 19, 2026
  10. Junio C HamanoApr 20, 2026
  11. Taylor BlauApr 16, 2026
  12. Jeff KingApr 16, 2026
  13. Junio C HamanoApr 16, 2026
  14. Junio C HamanoApr 16, 2026
  15. Jeff KingApr 16, 2026
  16. Junio C HamanoApr 16, 2026
  17. Jeff KingApr 16, 2026
  18. Junio C HamanoApr 17, 2026
  19. MIDX: revert the default version to v1Junio C Hamano, Apr 16, 2026
  20. Junio C HamanoApr 16, 2026
  21. Junio C HamanoApr 16, 2026
  22. Taylor BlauApr 16, 2026
  23. Jeff KingApr 16, 2026
  24. Junio C HamanoApr 16, 2026
  25. Jeff KingApr 16, 2026
  26. Jeff KingApr 16, 2026
  27. Taylor BlauApr 16, 2026
  28. Jeff KingApr 16, 2026
  29. Junio C HamanoApr 17, 2026
  30. Elijah NewrenApr 17, 2026

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.