File tree Expand file tree Collapse file tree 1 file changed +20
-1
lines changed
Expand file tree Collapse file tree 1 file changed +20
-1
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments