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'
13
13
#
14
14
# D..M -- M.t == M
15
15
# --ancestry-path D..M -- M.t == M
16
+ #
17
+ # F...I == F G H I
18
+ # --ancestry-path F...I == F H I
16
19
17
20
. ./test-lib.sh
18
21
@@ -63,13 +66,29 @@ test_expect_success 'rev-list D..M -- M.t' '
63
66
test_cmp expect actual
64
67
'
65
68
66
- test_expect_success ' rev-list --ancestry-patch D..M -- M.t' '
69
+ test_expect_success ' rev-list --ancestry-path D..M -- M.t' '
67
70
echo M >expect &&
68
71
git rev-list --ancestry-path --format=%s D..M -- M.t |
69
72
sed -e "/^commit /d" >actual &&
70
73
test_cmp expect actual
71
74
'
72
75
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
+
73
92
# b---bc
74
93
# / \ /
75
94
# a X
You can’t perform that action at this time.
0 commit comments