]> Kevux Git Server - rit/commit
builtin/repo: find commit with most parents
authorJustin Tobler <jltobler@gmail.com>
Mon, 2 Mar 2026 21:45:25 +0000 (15:45 -0600)
committerJunio C Hamano <gitster@pobox.com>
Mon, 2 Mar 2026 21:54:52 +0000 (13:54 -0800)
commit18952a1ef1a14d2fca19638118dc2eea1e24d671
treec638620bd5daed64f6ccf7c402aa3879600cd130
parente00bb8c76e18357da3a2098cdac2a3c2c312c17d
builtin/repo: find commit with most parents

Complex merge events may produce an octopus merge where the resulting
merge commit has more than two parents. While iterating through objects
in the repository for git-repo-structure, identify the commit with the
most parents 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