]> git.ipfire.org Git - thirdparty/git.git/commit
packfile: stop using linked MIDX list in `find_pack_entry()`
authorPatrick Steinhardt <ps@pks.im>
Tue, 15 Jul 2025 11:29:22 +0000 (13:29 +0200)
committerJunio C Hamano <gitster@pobox.com>
Tue, 15 Jul 2025 19:07:29 +0000 (12:07 -0700)
commit7fc19983926af6aea1eb393a5deb7bb2fc3cd495
tree9445a97637a13778b991fbfe2ffb09ace0834115
parent736bb725ebcd37d567455db2ac50524dea11223c
packfile: stop using linked MIDX list in `find_pack_entry()`

Refactor `find_pack_entry()` so that we stop using the linked list of
multi-pack indices. Note that there is no need to explicitly prepare
alternates, and neither do we have to use `get_multi_pack_index()`,
because `prepare_packed_git()` already takes care of populating all data
structures for us.

Signed-off-by: Patrick Steinhardt <ps@pks.im>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
packfile.c