]> Kevux Git Server - rit/commit
builtin/repo: update stats for each object
authorJustin Tobler <jltobler@gmail.com>
Mon, 2 Mar 2026 21:45:21 +0000 (15:45 -0600)
committerJunio C Hamano <gitster@pobox.com>
Mon, 2 Mar 2026 21:54:51 +0000 (13:54 -0800)
commit31c771ab443352741ecc3710d54a91890a68ee79
tree1006b3d0ac0088218113dc06cd47a5ef116839ed
parent7c02d39fc2ed2702223c7674f73150d9a7e61ba4
builtin/repo: update stats for each object

When walking reachable objects in the repository, `count_objects()`
processes a set of objects and updates the `struct object_stats`. In
preparation for more granular statistics being collected, update the
`struct object_stats` for each individual object instead.

Signed-off-by: Justin Tobler <jltobler@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/repo.c