]> git.ipfire.org Git - thirdparty/git.git/commit
reachable: convert to use `odb_for_each_object()`
authorPatrick Steinhardt <ps@pks.im>
Thu, 15 Jan 2026 11:04:42 +0000 (12:04 +0100)
committerJunio C Hamano <gitster@pobox.com>
Thu, 15 Jan 2026 13:50:29 +0000 (05:50 -0800)
commit9a9a207cb3e62b199cb2b53c288846b5ce79115c
tree2694d831ca5d9b5e86c3e2085bd2b5221ac32a2c
parentb591d25a5dd9487c228007e8440266030d51c97f
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