]> Kevux Git Server - rit/commit
object-file: generalize counting objects
authorPatrick Steinhardt <ps@pks.im>
Thu, 12 Mar 2026 08:42:59 +0000 (09:42 +0100)
committerJunio C Hamano <gitster@pobox.com>
Thu, 12 Mar 2026 15:38:42 +0000 (08:38 -0700)
commit2b24db1110150138ac1e09bc60d9ae5245909625
tree1661f7964868da60d42883b5ebb0376e8ea17bde
parent222fddeaa44b633eea345996735b4f7893eb71ec
object-file: generalize counting objects

Generalize the function introduced in the preceding commit to not only
be able to approximate the number of loose objects, but to also provide
an accurate count. The behaviour can be toggled via a new flag.

Signed-off-by: Patrick Steinhardt <ps@pks.im>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/gc.c
object-file.c
object-file.h
odb.h