]> Kevux Git Server - rit/commit
odb/source-loose: wire up `count_objects()` callback
authorPatrick Steinhardt <ps@pks.im>
Mon, 1 Jun 2026 08:20:33 +0000 (10:20 +0200)
committerJunio C Hamano <gitster@pobox.com>
Mon, 1 Jun 2026 09:47:18 +0000 (18:47 +0900)
commit2ade08ac2978dc1c908602c2a4d653836ecb5acb
treee5c5489ef7c4dbb2d783d027a13c60c5ede52191
parent8a6da81cc113607bdc1ac08395f6e7121cd652e9
odb/source-loose: wire up `count_objects()` callback

Move `odb_source_loose_count_objects()` and its associated helpers from
"object-file.c" into "odb/source-loose.c" and wire it up as the
`count_objects()` callback of the loose source.

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/source-files.c
odb/source-loose.c