]> git.ipfire.org Git - thirdparty/git.git/commit
builtin/repo: add object counts in structure output
authorJustin Tobler <jltobler@gmail.com>
Tue, 21 Oct 2025 18:25:59 +0000 (13:25 -0500)
committerJunio C Hamano <gitster@pobox.com>
Tue, 21 Oct 2025 21:40:38 +0000 (14:40 -0700)
commiteb5cf58ffcd4bb117c870d448b0df0193df52c82
treeec796697f7aac4082004cf53000cdaa500aeca36
parentbbb2b9334856ae0a2b18e65e5924a42c31a83c6b
builtin/repo: add object counts in structure output

The amount of objects in a repository can provide insight regarding its
shape. To surface this information, use the path-walk API to count the
number of reachable objects in the repository by object type. All
regular references are used to determine the reachable set of objects.
The object counts are appended to the same table containing the
reference information.

Signed-off-by: Justin Tobler <jltobler@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Documentation/git-repo.adoc
builtin/repo.c
t/t1901-repo-structure.sh