@matheusbsbs / matheus-bagliano / commits / 9332441d8e
Fork 0

t6018: add tests for rev-list's --branches and --tags

so that we know when they break. Signed-off-by: Michael J Gruber <git@drmicha.warpmail.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>

Michael J Gruber committed May 14, 2010 at 20:26 UTC 9332441d8e33c3ff9900c8ddd48440846d099020
1 file changed +13
t/t6018-rev-list-glob.sh
+13
@@ -162,6 +162,13 @@ test_expect_success 'rev-list --branches=subspace' '
162 compare rev-list "subspace/one subspace/two" "--branches=subspace"
163
164 '
165 +
166 +test_expect_success 'rev-list --branches' '
167 +
168 + compare rev-list "master subspace-x someref other/three subspace/one subspace/two" "--branches"
169 +
170 +'
171 +
172 test_expect_success 'rev-list --glob=heads/someref/* master' '
173
174 compare rev-list "master" "--glob=heads/someref/* master"
@@ -186,6 +193,12 @@ test_expect_success 'rev-list --tags=foo' '
193
194 '
195
196 +test_expect_success 'rev-list --tags' '
197 +
198 + compare rev-list "foo/bar" "--tags"
199 +
200 +'
201 +
202 test_expect_success 'rev-list --remotes=foo' '
203
204 compare rev-list "foo/baz" "--remotes=foo"