From: Junio C Hamano Date: Tue, 15 Jul 2025 19:06:57 +0000 (-0700) Subject: Merge branch 'tb/midx-avoid-cruft-packs' into ps/object-store-midx X-Git-Tag: v2.51.0-rc0~19^2~7 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=c29998d1d4cc2de064069adb2738af56a9d2fbd0;p=thirdparty%2Fgit.git Merge branch 'tb/midx-avoid-cruft-packs' into ps/object-store-midx * tb/midx-avoid-cruft-packs: repack: exclude cruft pack(s) from the MIDX where possible pack-objects: introduce '--stdin-packs=follow' pack-objects: swap 'show_{object,commit}_pack_hint' pack-objects: fix typo in 'show_object_pack_hint()' pack-objects: perform name-hash traversal for unpacked objects pack-objects: declare 'rev_info' for '--stdin-packs' earlier pack-objects: factor out handling '--stdin-packs' pack-objects: limit scope in 'add_object_entry_from_pack()' pack-objects: use standard option incompatibility functions --- c29998d1d4cc2de064069adb2738af56a9d2fbd0 diff --cc builtin/pack-objects.c index 5781dec980,4ae52c6a29..067b9e322a --- a/builtin/pack-objects.c +++ b/builtin/pack-objects.c @@@ -4294,9 -4325,10 +4327,10 @@@ static void add_objects_in_unpacked_pac } static int add_loose_object(const struct object_id *oid, const char *path, - void *data UNUSED) + void *data) { + struct rev_info *revs = data; - enum object_type type = oid_object_info(the_repository, oid, NULL); + enum object_type type = odb_read_object_info(the_repository->objects, oid, NULL); if (type < 0) { warning(_("loose object at %s could not be examined"), path);