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

Junio C Hamano <[email protected]> Tue, 28 Jul 2026 15:46:39 -0700
Newsgroups org.kernel.vger.git
Message-ID <[email protected]>
David Lin <[email protected]> writes:

> `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 <[email protected]>
> Signed-off-by: David Lin <[email protected]>
> ---
> Changes since v1:
> - Clarify the bitmap disk load wordings.
> - Add coverage for the non-pseudo-merge case.

Thanks, both of you.  Will queue.