aboutsummaryrefslogtreecommitdiff
path: root/odb.h
diff options
context:
space:
mode:
authorPatrick Steinhardt <ps@pks.im>2026-03-12 09:42:58 +0100
committerJunio C Hamano <gitster@pobox.com>2026-03-12 08:38:42 -0700
commit222fddeaa44b633eea345996735b4f7893eb71ec (patch)
tree27baa462f10c8b3531ad378daaef92acdee7ac31 /odb.h
parentdd587cd59e1575f2d5698cb45b42644e1df9b835 (diff)
downloadgit-222fddeaa44b633eea345996735b4f7893eb71ec.tar.xz
object-file: extract logic to approximate object count
In "builtin/gc.c" we have some logic that checks whether we need to repack objects. This is done by counting the number of objects that we have and checking whether it exceeds a certain threshold. We don't really need an accurate object count though, which is why we only open a single object directory shard and then extrapolate from there. Extract this logic into a new function that is owned by the loose object database source. This is done to prepare for a subsequent change, where we'll introduce object counting on the object database source level. Signed-off-by: Patrick Steinhardt <ps@pks.im> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'odb.h')
0 files changed, 0 insertions, 0 deletions