From: Junio C Hamano Date: Tue, 23 Dec 2025 14:12:50 +0000 (+0900) Subject: Merge branch 'ps/packfile-store-in-odb-source' into seen X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ffd6ad8c04a18ba5f4ebd530836d864622ed5a6c;p=thirdparty%2Fgit.git Merge branch 'ps/packfile-store-in-odb-source' into seen The packfile_store data structure is moved from object store to odb source. Comments? * 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 --- ffd6ad8c04a18ba5f4ebd530836d864622ed5a6c diff --cc packfile.c index 79cea97f35,097dd8d85d..402c3b5dc7 --- a/packfile.c +++ b/packfile.c @@@ -2157,10 -2132,11 +2151,10 @@@ int packfile_store_read_object_info(str struct object_info *oi, unsigned flags UNUSED) { - static struct object_info blank_oi = OBJECT_INFO_INIT; struct pack_entry e; - int rtype; + int ret; - if (!find_pack_entry(store->odb->repo, oid, &e)) + if (!find_pack_entry(store, oid, &e)) return 1; /* @@@ -2545,9 -2554,8 +2566,9 @@@ int packfile_store_read_object_stream(s oi.sizep = &size; if (packfile_store_read_object_info(store, oid, &oi, 0) || - oi.u.packed.is_delta || + oi.u.packed.type == PACKED_OBJECT_TYPE_REF_DELTA || + oi.u.packed.type == PACKED_OBJECT_TYPE_OFS_DELTA || - repo_settings_get_big_file_threshold(store->odb->repo) >= size) + repo_settings_get_big_file_threshold(store->source->odb->repo) >= size) return -1; in_pack_type = unpack_object_header(oi.u.packed.pack,