]> git.ipfire.org Git - thirdparty/git.git/commit
commit-graph: propagate topo_levels slab to all chain layers
authorKristofer Karlsson <krka@spotify.com>
Thu, 9 Jul 2026 15:03:01 +0000 (15:03 +0000)
committerJunio C Hamano <gitster@pobox.com>
Thu, 9 Jul 2026 17:29:23 +0000 (10:29 -0700)
commit8ea36f63d8e63350325705afef885ae215e64217
treed911b24e2a3867f5e14eafeda096f6057280e17f
parent02d62c33be04260445fb201fc65769f421324ed0
commit-graph: propagate topo_levels slab to all chain layers

The topo_levels slab is only propagated to the topmost graph
layer instead of all layers in the chain.  Commits from lower
layers appear to have no generation numbers, so the DFS
re-walks the entire ancestry.

Fix by making topo_levels visible to all layers, not just
the first one.

Signed-off-by: Kristofer Karlsson <krka@spotify.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
commit-graph.c
t/t5324-split-commit-graph.sh