5858
5959test_expect_success ' --left-right' '
6060 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/*" \
6262 < actual > actual.named &&
6363 test_cmp expect actual.named
6464'
7878
7979test_expect_success ' --cherry-pick bar does not come up empty' '
8080 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/*" \
8282 < actual > actual.named &&
8383 test_cmp expect actual.named
8484'
8585
8686test_expect_success ' bar does not come up empty' '
8787 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/*" \
8989 < actual > actual.named &&
9090 test_cmp expect actual.named
9191'
9797
9898test_expect_success ' --cherry-pick bar does not come up empty (II)' '
9999 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/*" \
101101 < actual > actual.named &&
102102 test_cmp expect actual.named
103103'
104104
105105test_expect_success ' name-rev multiple --refs combine inclusive' '
106106 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" \
108108 <actual >actual.named &&
109109 test_cmp expect actual.named
110110'
116116test_expect_success ' name-rev --refs excludes non-matched patterns' '
117117 git rev-list --left-right --right-only --cherry-pick F...E -- bar >>expect &&
118118 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" \
120120 <actual >actual.named &&
121121 test_cmp expect actual.named
122122'
@@ -128,14 +128,14 @@ EOF
128128test_expect_success ' name-rev --exclude excludes matched patterns' '
129129 git rev-list --left-right --right-only --cherry-pick F...E -- bar >>expect &&
130130 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" \
132132 <actual >actual.named &&
133133 test_cmp expect actual.named
134134'
135135
136136test_expect_success ' name-rev --no-refs clears the refs list' '
137137 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" \
139139 <expect >actual &&
140140 test_cmp expect actual
141141'
149149
150150test_expect_success ' --cherry-mark' '
151151 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/*" \
153153 < actual > actual.named &&
154154 test_cmp expect actual.named
155155'
163163
164164test_expect_success ' --cherry-mark --left-right' '
165165 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/*" \
167167 < actual > actual.named &&
168168 test_cmp expect actual.named
169169'
@@ -174,14 +174,14 @@ EOF
174174
175175test_expect_success ' --cherry-pick --right-only' '
176176 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/*" \
178178 < actual > actual.named &&
179179 test_cmp expect actual.named
180180'
181181
182182test_expect_success ' --cherry-pick --left-only' '
183183 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/*" \
185185 < actual > actual.named &&
186186 test_cmp expect actual.named
187187'
193193
194194test_expect_success ' --cherry' '
195195 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/*" \
197197 < actual > actual.named &&
198198 test_cmp expect actual.named
199199'
0 commit comments