]> git.ipfire.org Git - thirdparty/git.git/commitdiff
Merge branch 'jt/repo-structure-extrema'
authorJunio C Hamano <gitster@pobox.com>
Mon, 16 Mar 2026 17:48:14 +0000 (10:48 -0700)
committerJunio C Hamano <gitster@pobox.com>
Mon, 16 Mar 2026 17:48:14 +0000 (10:48 -0700)
"git repo structure" command learns to report maximum values on
various aspects of objects it inspects.

* jt/repo-structure-extrema:
  builtin/repo: find tree with most entries
  builtin/repo: find commit with most parents
  builtin/repo: add OID annotations to table output
  builtin/repo: collect largest inflated objects
  builtin/repo: add helper for printing keyvalue output
  builtin/repo: update stats for each object

1  2 
Documentation/git-repo.adoc
builtin/repo.c
t/t1901-repo-structure.sh

Simple merge
diff --cc builtin/repo.c
Simple merge
index a67b38ab1781259e24c558ce953850e9e1920d05,12ed67e84689857978d36b832fe62d689cc3c4ba..98921ce1cbb66fd4e1238a8ebf26067ac3d39c8a
@@@ -138,9 -169,21 +169,21 @@@ test_expect_success SHA1 'lines and nu
                objects.trees.disk_size=$(object_type_disk_usage tree)
                objects.blobs.disk_size=$(object_type_disk_usage blob)
                objects.tags.disk_size=$(object_type_disk_usage tag)
+               objects.commits.max_size=221
+               objects.commits.max_size_oid=de3508174b5c2ace6993da67cae9be9069e2df39
+               objects.trees.max_size=1335
+               objects.trees.max_size_oid=09931deea9d81ec21300d3e13c74412f32eacec5
+               objects.blobs.max_size=11
+               objects.blobs.max_size_oid=eaeeedced46482bd4281fda5a5f05ce24854151f
+               objects.tags.max_size=132
+               objects.tags.max_size_oid=1ee0f2b16ea37d895dbe9dbd76cd2ac70446176c
+               objects.commits.max_parents=1
+               objects.commits.max_parents_oid=de3508174b5c2ace6993da67cae9be9069e2df39
+               objects.trees.max_entries=42
+               objects.trees.max_entries_oid=09931deea9d81ec21300d3e13c74412f32eacec5
                EOF
  
 -              git repo structure --format=keyvalue >out 2>err &&
 +              git repo structure --format=lines >out 2>err &&
  
                test_cmp expect out &&
                test_line_count = 0 err &&