Skip to content

Commit f659031

Browse files
kjbracey2gitster
authored andcommitted
t6019: demonstrate --ancestry-path A...B breakage
Signed-off-by: Kevin Bracey <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 8d97506 commit f659031

File tree

1 file changed

+20
-1
lines changed

1 file changed

+20
-1
lines changed

t/t6019-rev-list-ancestry-path.sh

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,9 @@ test_description='--ancestry-path'
1313
#
1414
# D..M -- M.t == M
1515
# --ancestry-path D..M -- M.t == M
16+
#
17+
# F...I == F G H I
18+
# --ancestry-path F...I == F H I
1619

1720
. ./test-lib.sh
1821

@@ -63,13 +66,29 @@ test_expect_success 'rev-list D..M -- M.t' '
6366
test_cmp expect actual
6467
'
6568

66-
test_expect_success 'rev-list --ancestry-patch D..M -- M.t' '
69+
test_expect_success 'rev-list --ancestry-path D..M -- M.t' '
6770
echo M >expect &&
6871
git rev-list --ancestry-path --format=%s D..M -- M.t |
6972
sed -e "/^commit /d" >actual &&
7073
test_cmp expect actual
7174
'
7275

76+
test_expect_success 'rev-list F...I' '
77+
for c in F G H I; do echo $c; done >expect &&
78+
git rev-list --format=%s F...I |
79+
sed -e "/^commit /d" |
80+
sort >actual &&
81+
test_cmp expect actual
82+
'
83+
84+
test_expect_failure 'rev-list --ancestry-path F...I' '
85+
for c in F H I; do echo $c; done >expect &&
86+
git rev-list --ancestry-path --format=%s F...I |
87+
sed -e "/^commit /d" |
88+
sort >actual &&
89+
test_cmp expect actual
90+
'
91+
7392
# b---bc
7493
# / \ /
7594
# a X

0 commit comments

Comments
 (0)