]> git.ipfire.org Git - thirdparty/git.git/commit
builtin/repo: humanise count values in structure output
authorJustin Tobler <jltobler@gmail.com>
Wed, 17 Dec 2025 17:54:00 +0000 (11:54 -0600)
committerJunio C Hamano <gitster@pobox.com>
Thu, 18 Dec 2025 00:02:31 +0000 (09:02 +0900)
commit54731320cc3db337f9a3e3920f707e9de3596c60
tree56e999bbf02332ec73d67f47b387ff68425ca7c8
parentce849b1851102d974653701564573798034492d5
builtin/repo: humanise count values in structure output

The table output format for the git-repo(1) structure subcommand is used
by default and intended to provide output to users in a human-friendly
manner. When the reference/object count values in a repository are
large, it becomes more cumbersome for users to read the values.

For larger values, update the table output format to instead produce
more human-friendly count values that are scaled down with the
appropriate unit prefix. Output for the keyvalue and nul formats remains
unchanged.

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