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

Re: [PATCH v2] pack-bitmap: handle objects at bitmap position zero

From
Junio C Hamano <gitster@pobox.com>
Date
Jul 28, 2026, 22:46 UTC
Message-ID
<xmqq5x1yd968.fsf@gitster.g>
In-Reply-To
<20260728135248.61304-1-davidlin@stripe.com>
David Lin <davidzylin@gmail.com> writes:
Show 13 quoted lines
> `bitmap_position()` only returns a negative value when an object is not
> present in the bitmap index.
> ...
> Also cover the non-pseudo-merge case by passing `HEAD` twice. The first
> occurrence initializes the base from its stored bitmap, and the second
> must recognize that position zero is already present.
>
> Helped-by: Taylor Blau <ttaylorr@openai.com>
> Signed-off-by: David Lin <davidlin@stripe.com>
> ---
> Changes since v1:
> - Clarify the bitmap disk load wordings.
> - Add coverage for the non-pseudo-merge case.
Thanks, both of you.  Will queue.
Previous: David LinNext: Taylor Blau
Message 5 of 6 in “pack-bitmap: handle objects at bitmap position zero”
  1. pack-bitmap: handle objects at bitmap position zeroDavid Lin, Jul 27, 2026
  2. Taylor BlauJul 27, 2026
  3. David LinJul 28, 2026
  4. pack-bitmap: handle objects at bitmap position zeroDavid Lin, Jul 28, 2026
  5. Junio C HamanoJul 28, 2026
  6. Taylor BlauJul 28, 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.