]> git.99rst.org Git - git.git/commit
pack-bitmap: consolidate `find_object_pos()` success path
authorTaylor Blau <redacted>
Wed, 27 May 2026 19:55:59 +0000 (15:55 -0400)
committerJunio C Hamano <redacted>
Wed, 27 May 2026 20:23:00 +0000 (05:23 +0900)
commitece3465d44157157a03eb7cd5de955e552e7831c
treec1042ed7adaa1f237915b48f31ec64de02727a43
parent3ea5fe8482e44fe8636b2725edffcadc81b22161
pack-bitmap: consolidate `find_object_pos()` success path

Both sides of `find_object_pos()` report success in the same way by
setting the optional `found` out-parameter and return the resolved
bitmap position.

Prepare for adding more bookkeeping around object-position lookups by
storing the result in a local `pos` variable and sharing the success
return path between the packlist and MIDX cases.

Signed-off-by: Taylor Blau <redacted>
Signed-off-by: Junio C Hamano <redacted>
pack-bitmap-write.c
git clone https://git.99rst.org/PROJECT