aboutsummaryrefslogtreecommitdiffstats
path: root/midx.c
diff options
context:
space:
mode:
authorPatrick Steinhardt <ps@pks.im>2025-09-23 12:17:09 +0200
committerJunio C Hamano <gitster@pobox.com>2025-09-24 11:53:50 -0700
commitf6f236d926915411eca28cb1c47619fdacf6eafb (patch)
tree053d479d9dbd006595b6b4b91ffa71879adcc556 /midx.c
parent78237ea53d6546aeab7adb2c7547a1177311ccde (diff)
downloadgit-f6f236d926915411eca28cb1c47619fdacf6eafb.tar.gz
packfile: refactor `install_packed_git()` to work on packfile store
The `install_packed_git()` functions adds a packfile to a specific object store. Refactor it to accept a packfile store instead of a repository to clarify its scope. Signed-off-by: Patrick Steinhardt <ps@pks.im> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'midx.c')
-rw-r--r--midx.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/midx.c b/midx.c
index 91c7b3917d..69c44be71c 100644
--- a/midx.c
+++ b/midx.c
@@ -467,7 +467,7 @@ int prepare_midx_pack(struct multi_pack_index *m,
p = add_packed_git(r, pack_name.buf, pack_name.len,
m->source->local);
if (p) {
- install_packed_git(r, p);
+ packfile_store_add_pack(r->objects->packfiles, p);
list_add_tail(&p->mru, &r->objects->packfiles->mru);
}
}