summaryrefslogtreecommitdiff
path: root/contrib/git-shell-commands/help
diff options
context:
space:
mode:
authorPatrick Steinhardt <ps@pks.im>2025-07-15 13:29:21 +0200
committerJunio C Hamano <gitster@pobox.com>2025-07-15 12:07:29 -0700
commit736bb725ebcd37d567455db2ac50524dea11223c (patch)
tree71e35b47700022912a7d0090bf578b28b9b7cf60 /contrib/git-shell-commands/help
parent6567432ab4f93f63cd2111197c91651a9b04c517 (diff)
packfile: refactor `get_multi_pack_index()` to work on sources
The function `get_multi_pack_index()` loads multi-pack indices via `prepare_packed_git()` and then returns the linked list of multi-pack indices that is stored in `struct object_database`. That list is in the process of being removed though in favor of storing the MIDX as part of the object database source it belongs to. Refactor `get_multi_pack_index()` so that it returns the multi-pack index for a single object source. Callers are now expected to call this function for each source they are interested in. This requires them to iterate through alternates, so we have to prepare alternate object sources before doing so. Signed-off-by: Patrick Steinhardt <ps@pks.im> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'contrib/git-shell-commands/help')
0 files changed, 0 insertions, 0 deletions