]> git.ipfire.org Git - thirdparty/git.git/commit
pack-bitmap: consolidate `find_object_pos()` success path
authorTaylor Blau <me@ttaylorr.com>
Wed, 27 May 2026 19:55:59 +0000 (15:55 -0400)
committerJunio C Hamano <gitster@pobox.com>
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 <me@ttaylorr.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
pack-bitmap-write.c