]> git.ipfire.org Git - thirdparty/git.git/commitdiff
Merge branch 'ps/packfile-store-in-odb-source' into jch
authorJunio C Hamano <gitster@pobox.com>
Thu, 8 Jan 2026 07:40:32 +0000 (16:40 +0900)
committerJunio C Hamano <gitster@pobox.com>
Thu, 8 Jan 2026 07:40:33 +0000 (16:40 +0900)
The packfile_store data structure is moved from object store to odb
source.

* ps/packfile-store-in-odb-source:
  packfile: move MIDX into packfile store
  packfile: refactor `find_pack_entry()` to work on the packfile store
  packfile: inline `find_kept_pack_entry()`
  packfile: only prepare owning store in `packfile_store_prepare()`
  packfile: only prepare owning store in `packfile_store_get_packs()`
  packfile: move packfile store into object source
  packfile: refactor misleading code when unusing pack windows
  packfile: refactor kept-pack cache to work with packfile stores
  packfile: pass source to `prepare_pack()`
  packfile: create store via its owning source

1  2 
builtin/pack-objects.c
midx.c
odb.c
packfile.c
revision.c

Simple merge
diff --cc midx.c
Simple merge
diff --cc odb.c
Simple merge
diff --cc packfile.c
index 23a7f8a1917619d35ad4e57a4debecd5fcf85b6a,097dd8d85d374ee65776f757c44389be4fa7490b..3ffd6c7240f03d53c75f1e7b3899b25e8104e7d9
@@@ -2148,10 -2143,10 +2142,10 @@@ int packfile_store_read_object_info(str
         * We know that the caller doesn't actually need the
         * information below, so return early.
         */
 -      if (oi == &blank_oi)
 +      if (!oi)
                return 0;
  
-       rtype = packed_object_info(store->odb->repo, e.p, e.offset, oi);
+       rtype = packed_object_info(store->source->odb->repo, e.p, e.offset, oi);
        if (rtype < 0) {
                mark_bad_packed_object(e.p, oid);
                return -1;
diff --cc revision.c
Simple merge