]> git.ipfire.org Git - thirdparty/git.git/blobdiff - t/t6600-test-reach.sh
test-reach: test get_merge_bases_many
[thirdparty/git.git] / t / t6600-test-reach.sh
index 98bcb17960ee5c56da8d44a36bc76b2c5aa97df4..d43e1a61d55f0ea574f017d276191ce97f0d8b8b 100755 (executable)
@@ -123,4 +123,19 @@ test_expect_success 'is_descendant_of:miss' '
        test_three_modes is_descendant_of
 '
 
+test_expect_success 'get_merge_bases_many' '
+       cat >input <<-\EOF &&
+       A:commit-5-7
+       X:commit-4-8
+       X:commit-6-6
+       X:commit-8-3
+       EOF
+       {
+               echo "get_merge_bases_many(A,X):" &&
+               git rev-parse commit-5-6 \
+                             commit-4-7 | sort
+       } >expect &&
+       test_three_modes get_merge_bases_many
+'
+
 test_done