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

Refactor `get_all_packs()` 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