]> Kevux Git Server - rit/commit
builtin/repo: collect largest inflated objects
authorJustin Tobler <jltobler@gmail.com>
Mon, 2 Mar 2026 21:45:23 +0000 (15:45 -0600)
committerJunio C Hamano <gitster@pobox.com>
Mon, 2 Mar 2026 21:54:52 +0000 (13:54 -0800)
commite33ac9cc9e819f9de8ffe25c165393514cc61b12
treebd99b15c2ce7762700c89c6ea5457aef13b07520
parentfa1752792711e7383376cf232eb72aac77d726d7
builtin/repo: collect largest inflated objects

The "structure" output for git-repo(1) shows the total inflated and disk
sizes of reachable objects in the repository, but doesn't show the size
of the largest individual objects. Since an individual object may be a
large contributor to the overall repository size, it is useful for users
to know the maximum size of individual objects.

While interating across objects, record the size and OID of the largest
objects encountered for each object type to provide as output. Note that
the default "table" output format only displays size information and not
the corresponding OID. In a subsequent commit, the table format is
updated to add table annotations that mention the OID.

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