diff options
| author | Justin Tobler <jltobler@gmail.com> | 2025-12-17 11:54:01 -0600 |
|---|---|---|
| committer | Junio C Hamano <gitster@pobox.com> | 2025-12-18 09:02:31 +0900 |
| commit | 3e114496e48e665d2bb9e0c0917e6051d60392ea (patch) | |
| tree | e006f625228e9ab4fb4ad08a3036bee54f4a5877 /t | |
| parent | 54731320cc3db337f9a3e3920f707e9de3596c60 (diff) | |
| download | git-3e114496e48e665d2bb9e0c0917e6051d60392ea.tar.xz | |
builtin/repo: add inflated object info to keyvalue structure output
The structure subcommand for git-repo(1) outputs basic count information
for objects and references. Extend this output to also provide
information regarding total size of inflated objects by object type.
For now, object size by object type info is only added to the keyvalue
and nul output formats. In a subsequent commit, this info is also added
to the table format.
Signed-off-by: Justin Tobler <jltobler@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't')
| -rwxr-xr-x | t/t1901-repo-structure.sh | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/t/t1901-repo-structure.sh b/t/t1901-repo-structure.sh index 55fd13ad1b..33237822fd 100755 --- a/t/t1901-repo-structure.sh +++ b/t/t1901-repo-structure.sh @@ -73,7 +73,7 @@ test_expect_success 'repository with references and objects' ' ) ' -test_expect_success 'keyvalue and nul format' ' +test_expect_success SHA1 'keyvalue and nul format' ' test_when_finished "rm -rf repo" && git init repo && ( @@ -90,6 +90,10 @@ test_expect_success 'keyvalue and nul format' ' objects.trees.count=42 objects.blobs.count=42 objects.tags.count=1 + objects.commits.inflated_size=9225 + objects.trees.inflated_size=28554 + objects.blobs.inflated_size=453 + objects.tags.inflated_size=132 EOF git repo structure --format=keyvalue >out 2>err && |
