]> git.ipfire.org Git - thirdparty/git.git/commit
t6600: add tests for duplicate tips in tips_reachable_from_bases()
authorKristofer Karlsson <krka@spotify.com>
Sat, 16 May 2026 15:59:41 +0000 (15:59 +0000)
committerJunio C Hamano <gitster@pobox.com>
Sun, 17 May 2026 05:59:16 +0000 (14:59 +0900)
commita30f132bcb62bc44053b1dba0940c2d4041c797a
tree8f5c9c6e51b4a1a038a3d6d4e06c526a37898da5
parentb80b462d7cf2225c25959ce89727fdd3334c0afc
t6600: add tests for duplicate tips in tips_reachable_from_bases()

When multiple refs point to the same commit, the reachability check
must handle them correctly.  Add three tests:

 - duplicate tips, all reachable
 - duplicate tips, none reachable
 - duplicate tips at the minimum generation (exercises the
   early-termination advancement logic)

Suggested-by: Derrick Stolee <stolee@gmail.com>
Signed-off-by: Kristofer Karlsson <krka@spotify.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/t6600-test-reach.sh