]> git.ipfire.org Git - thirdparty/git.git/commit
t6099, t6600: add side-exhaustion regression tests
authorKristofer Karlsson <krka@spotify.com>
Wed, 24 Jun 2026 12:14:09 +0000 (12:14 +0000)
committerJunio C Hamano <gitster@pobox.com>
Wed, 24 Jun 2026 16:58:50 +0000 (09:58 -0700)
commit021c224950af1bea508aacdb593ad3ecfc80fb96
treeed3e8f52f26ca134cbedd0cdb0d290ba04efd4a5
parent70bff9d10228bd6a3883daeeecfcb63f00c46ac1
t6099, t6600: add side-exhaustion regression tests

Add t6099 to test the case where multiple merge-base candidates exist
and one is an ancestor of another. This exercises the side-exhaustion
optimization in paint_down_to_common together with the
remove_redundant safety net in get_merge_bases_many_0.

Add a mixed finite/INFINITY test to t6600 where one tip is outside
the commit-graph (INFINITY generation) and the other is inside.
This exercises the region transition: the walk starts in the
INFINITY region where side-exhaustion is disabled, then crosses
into the finite region where it can fire.

Signed-off-by: Kristofer Karlsson <krka@spotify.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/meson.build
t/t6099-merge-base-side-exhaustion.sh [new file with mode: 0755]
t/t6600-test-reach.sh