]> Kevux Git Server - rit/commit
builtin/repo: find tree with most entries
authorJustin Tobler <jltobler@gmail.com>
Mon, 2 Mar 2026 21:45:26 +0000 (15:45 -0600)
committerJunio C Hamano <gitster@pobox.com>
Mon, 2 Mar 2026 21:54:53 +0000 (13:54 -0800)
commit42e69594113d647f53d65440f2ede554570b9f40
tree14731f497d8e6079d77bd3f1f7e800e503bd2c89
parent18952a1ef1a14d2fca19638118dc2eea1e24d671
builtin/repo: find tree with most entries

The size of a tree object usually corresponds with the number of entries
it has. While iterating through objects in the repository for
git-repo-structure, identify the tree with the most entries and display
it in the output.

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