]> git.ipfire.org Git - thirdparty/git.git/commit
packfile: extract logic to count number of objects
authorPatrick Steinhardt <ps@pks.im>
Thu, 12 Mar 2026 08:42:57 +0000 (09:42 +0100)
committerJunio C Hamano <gitster@pobox.com>
Thu, 12 Mar 2026 15:38:42 +0000 (08:38 -0700)
commitdd587cd59e1575f2d5698cb45b42644e1df9b835
treef3e5bd152abb585fb8798f0b4e5b4025c4bbb9dc
parent6daeb66baac581ab81148bcb9d5fcc61ae33347e
packfile: extract logic to count number of objects

In a subsequent commit we're about to introduce a new
`odb_source_count_objects()` function so that we can make the logic
pluggable. Prepare for this change by extracting the logic that we have
to count packed objects into a standalone function.

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