]> asedeno.scripts.mit.edu Git - git.git/blobdiff - t/t6019-rev-list-ancestry-path.sh
Merge branch 'maint-1.7.1' into maint-1.7.2
[git.git] / t / t6019-rev-list-ancestry-path.sh
index 0230724ca5c00648992e228c248b5942234ab054..76410293b34ecede219445e09b1eccb8175ee115 100755 (executable)
@@ -10,6 +10,9 @@ test_description='--ancestry-path'
 #
 #  D..M                 == E F G H I J K L M
 #  --ancestry-path D..M == E F H I J L M
+#
+#  D..M -- M.t                 == M
+#  --ancestry-path D..M -- M.t == M
 
 . ./test-lib.sh
 
@@ -53,4 +56,18 @@ test_expect_success 'rev-list --ancestry-path D..M' '
        test_cmp expect actual
 '
 
+test_expect_success 'rev-list D..M -- M.t' '
+       echo M >expect &&
+       git rev-list --format=%s D..M -- M.t |
+       sed -e "/^commit /d" >actual &&
+       test_cmp expect actual
+'
+
+test_expect_success 'rev-list --ancestry-patch D..M -- M.t' '
+       echo M >expect &&
+       git rev-list --ancestry-path --format=%s D..M -- M.t |
+       sed -e "/^commit /d" >actual &&
+       test_cmp expect actual
+'
+
 test_done