58
58
59
59
test_expect_success ' --left-right' '
60
60
git rev-list --left-right B...C > actual &&
61
- git name-rev --stdin --name-only --refs="*tags/*" \
61
+ git name-rev --annotate- stdin --name-only --refs="*tags/*" \
62
62
< actual > actual.named &&
63
63
test_cmp expect actual.named
64
64
'
78
78
79
79
test_expect_success ' --cherry-pick bar does not come up empty' '
80
80
git rev-list --left-right --cherry-pick B...C -- bar > actual &&
81
- git name-rev --stdin --name-only --refs="*tags/*" \
81
+ git name-rev --annotate- stdin --name-only --refs="*tags/*" \
82
82
< actual > actual.named &&
83
83
test_cmp expect actual.named
84
84
'
85
85
86
86
test_expect_success ' bar does not come up empty' '
87
87
git rev-list --left-right B...C -- bar > actual &&
88
- git name-rev --stdin --name-only --refs="*tags/*" \
88
+ git name-rev --annotate- stdin --name-only --refs="*tags/*" \
89
89
< actual > actual.named &&
90
90
test_cmp expect actual.named
91
91
'
97
97
98
98
test_expect_success ' --cherry-pick bar does not come up empty (II)' '
99
99
git rev-list --left-right --cherry-pick F...E -- bar > actual &&
100
- git name-rev --stdin --name-only --refs="*tags/*" \
100
+ git name-rev --annotate- stdin --name-only --refs="*tags/*" \
101
101
< actual > actual.named &&
102
102
test_cmp expect actual.named
103
103
'
104
104
105
105
test_expect_success ' name-rev multiple --refs combine inclusive' '
106
106
git rev-list --left-right --cherry-pick F...E -- bar >actual &&
107
- git name-rev --stdin --name-only --refs="*tags/F" --refs="*tags/E" \
107
+ git name-rev --annotate- stdin --name-only --refs="*tags/F" --refs="*tags/E" \
108
108
<actual >actual.named &&
109
109
test_cmp expect actual.named
110
110
'
116
116
test_expect_success ' name-rev --refs excludes non-matched patterns' '
117
117
git rev-list --left-right --right-only --cherry-pick F...E -- bar >>expect &&
118
118
git rev-list --left-right --cherry-pick F...E -- bar >actual &&
119
- git name-rev --stdin --name-only --refs="*tags/F" \
119
+ git name-rev --annotate- stdin --name-only --refs="*tags/F" \
120
120
<actual >actual.named &&
121
121
test_cmp expect actual.named
122
122
'
@@ -128,14 +128,14 @@ EOF
128
128
test_expect_success ' name-rev --exclude excludes matched patterns' '
129
129
git rev-list --left-right --right-only --cherry-pick F...E -- bar >>expect &&
130
130
git rev-list --left-right --cherry-pick F...E -- bar >actual &&
131
- git name-rev --stdin --name-only --refs="*tags/*" --exclude="*E" \
131
+ git name-rev --annotate- stdin --name-only --refs="*tags/*" --exclude="*E" \
132
132
<actual >actual.named &&
133
133
test_cmp expect actual.named
134
134
'
135
135
136
136
test_expect_success ' name-rev --no-refs clears the refs list' '
137
137
git rev-list --left-right --cherry-pick F...E -- bar >expect &&
138
- git name-rev --stdin --name-only --refs="*tags/F" --refs="*tags/E" --no-refs --refs="*tags/G" \
138
+ git name-rev --annotate- stdin --name-only --refs="*tags/F" --refs="*tags/E" --no-refs --refs="*tags/G" \
139
139
<expect >actual &&
140
140
test_cmp expect actual
141
141
'
149
149
150
150
test_expect_success ' --cherry-mark' '
151
151
git rev-list --cherry-mark F...E -- bar > actual &&
152
- git name-rev --stdin --name-only --refs="*tags/*" \
152
+ git name-rev --annotate- stdin --name-only --refs="*tags/*" \
153
153
< actual > actual.named &&
154
154
test_cmp expect actual.named
155
155
'
163
163
164
164
test_expect_success ' --cherry-mark --left-right' '
165
165
git rev-list --cherry-mark --left-right F...E -- bar > actual &&
166
- git name-rev --stdin --name-only --refs="*tags/*" \
166
+ git name-rev --annotate- stdin --name-only --refs="*tags/*" \
167
167
< actual > actual.named &&
168
168
test_cmp expect actual.named
169
169
'
@@ -174,14 +174,14 @@ EOF
174
174
175
175
test_expect_success ' --cherry-pick --right-only' '
176
176
git rev-list --cherry-pick --right-only F...E -- bar > actual &&
177
- git name-rev --stdin --name-only --refs="*tags/*" \
177
+ git name-rev --annotate- stdin --name-only --refs="*tags/*" \
178
178
< actual > actual.named &&
179
179
test_cmp expect actual.named
180
180
'
181
181
182
182
test_expect_success ' --cherry-pick --left-only' '
183
183
git rev-list --cherry-pick --left-only E...F -- bar > actual &&
184
- git name-rev --stdin --name-only --refs="*tags/*" \
184
+ git name-rev --annotate- stdin --name-only --refs="*tags/*" \
185
185
< actual > actual.named &&
186
186
test_cmp expect actual.named
187
187
'
193
193
194
194
test_expect_success ' --cherry' '
195
195
git rev-list --cherry F...E -- bar > actual &&
196
- git name-rev --stdin --name-only --refs="*tags/*" \
196
+ git name-rev --annotate- stdin --name-only --refs="*tags/*" \
197
197
< actual > actual.named &&
198
198
test_cmp expect actual.named
199
199
'
0 commit comments