]> git.ipfire.org Git - thirdparty/git.git/commit
builtin/pack-objects: use `packfile_store_for_each_object()`
authorPatrick Steinhardt <ps@pks.im>
Mon, 26 Jan 2026 09:51:28 +0000 (10:51 +0100)
committerJunio C Hamano <gitster@pobox.com>
Mon, 26 Jan 2026 16:26:08 +0000 (08:26 -0800)
commitdd097bbe295d58fa698708d3754426f664fdfe02
tree715dae33846740bd24cf47cc6ab4034a7c5e1f1e
parent7b7cbaef2781cf755bc900e871964ae62ad532c5
builtin/pack-objects: use `packfile_store_for_each_object()`

When enumerating objects that are supposed to be stored in a new cruft
pack we use `for_each_packed_object()` and then derive each object's
mtime individually. Refactor this logic to instead use the new
`packfile_store_for_each_object()` function with an object info request
that asks for the respective mtimes.

Signed-off-by: Patrick Steinhardt <ps@pks.im>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/pack-objects.c