]> git.ipfire.org Git - thirdparty/git.git/commit
packfile: move `get_multi_pack_index()` into "midx.c"
authorPatrick Steinhardt <ps@pks.im>
Tue, 23 Sep 2025 10:17:11 +0000 (12:17 +0200)
committerJunio C Hamano <gitster@pobox.com>
Wed, 24 Sep 2025 18:53:50 +0000 (11:53 -0700)
commitab8aff4a6b2a1d5aa79deeb64bdeecc0234b4ddf
treee5362b3c6636aefcf58a21c33c84f93b83ab0beb
parentd67530f6bbe56f1951b8fd2fcdaae255bf552e2d
packfile: move `get_multi_pack_index()` into "midx.c"

The `get_multi_pack_index()` function is declared and implemented in the
packfile subsystem, even though it really belongs into the multi-pack
index subsystem. The reason for this is likely that it needs to call
`packfile_store_prepare()`, which is not exposed by the packfile system.
In a subsequent commit we're about to add another caller outside of the
packfile system though, so we'll have to expose the function anyway.

Do so now already and move `get_multi_pack_index()` into the MIDX
subsystem.

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