]> Kevux Git Server - rit/commit
reachable: convert to use `odb_for_each_object()`
authorPatrick Steinhardt <ps@pks.im>
Mon, 26 Jan 2026 09:51:29 +0000 (10:51 +0100)
committerJunio C Hamano <gitster@pobox.com>
Mon, 26 Jan 2026 16:26:08 +0000 (08:26 -0800)
commit7a8582c82ce896d89bbcc1d91d8b5bdc31902416
tree2da2f5a51ef2defc96bc8224fb0b6ba12fef8a3f
parentdd097bbe295d58fa698708d3754426f664fdfe02
reachable: convert to use `odb_for_each_object()`

To figure out which objects expired objects we enumerate all loose and
packed objects individually so that we can figure out their respective
mtimes. Refactor the code to instead use `odb_for_each_object()` with a
request that ask for the object mtime instead.

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