aboutsummaryrefslogtreecommitdiffstats
path: root/midx.c
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2025-11-03 07:27:57 -0800
committerJunio C Hamano <gitster@pobox.com>2025-11-03 07:27:57 -0800
commit1eb3440abd8b74b488685d123534580c7abb0352 (patch)
treebb224cef461c07d803521a55bc1efba0d250160d /midx.c
parentMerge branch 'cc/fast-import-export-i18n-cleanup' into next (diff)
parentpackfile: track packs via the MRU list exclusively (diff)
downloadgit-1eb3440abd8b74b488685d123534580c7abb0352.tar.gz
git-1eb3440abd8b74b488685d123534580c7abb0352.zip
Merge branch 'ps/packed-git-in-object-store' into next
The list of packfiles used in a running Git process is moved from the packed_git structure into the packfile store. * ps/packed-git-in-object-store: packfile: track packs via the MRU list exclusively packfile: always add packfiles to MRU when adding a pack packfile: move list of packs into the packfile store builtin/pack-objects: simplify logic to find kept or nonlocal objects packfile: fix approximation of object counts http: refactor subsystem to use `packfile_list`s packfile: move the MRU list into the packfile store packfile: use a `strmap` to store packs by name
Diffstat (limited to 'midx.c')
-rw-r--r--midx.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/midx.c b/midx.c
index 1d6269f957..24e1e72175 100644
--- a/midx.c
+++ b/midx.c
@@ -462,8 +462,6 @@ int prepare_midx_pack(struct multi_pack_index *m,
m->pack_names[pack_int_id]);
p = packfile_store_load_pack(r->objects->packfiles,
pack_name.buf, m->source->local);
- if (p)
- list_add_tail(&p->mru, &r->objects->packfiles->mru);
strbuf_release(&pack_name);
if (!p) {