summaryrefslogtreecommitdiff
path: root/t
diff options
context:
space:
mode:
authorMichael J Gruber <git@drmicha.warpmail.net>2011-03-07 12:31:43 (GMT)
committerJunio C Hamano <gitster@pobox.com>2011-03-09 21:50:55 (GMT)
commitfe3b59e595b02ee57314b74a74df915bdd845011 (patch)
tree00edd8e3048c9739820c6aaf29ccc33e45bdd243 /t
parent94f605ec0798a1f494023b72cd0d1f10b7a264f7 (diff)
downloadgit-fe3b59e595b02ee57314b74a74df915bdd845011.zip
git-fe3b59e595b02ee57314b74a74df915bdd845011.tar.gz
git-fe3b59e595b02ee57314b74a74df915bdd845011.tar.bz2
t6007: test rev-list --cherry
Signed-off-by: Michael J Gruber <git@drmicha.warpmail.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't')
-rwxr-xr-xt/t6007-rev-list-cherry-pick-file.sh12
1 files changed, 12 insertions, 0 deletions
diff --git a/t/t6007-rev-list-cherry-pick-file.sh b/t/t6007-rev-list-cherry-pick-file.sh
index 37bd25e..cacf3de 100755
--- a/t/t6007-rev-list-cherry-pick-file.sh
+++ b/t/t6007-rev-list-cherry-pick-file.sh
@@ -145,6 +145,18 @@ test_expect_success '--cherry-pick --left-only' '
test_cmp actual.named expect
'
+cat >expect <<EOF
++tags/E
+=tags/C
+EOF
+
+test_expect_success '--cherry' '
+ git rev-list --cherry F...E -- bar > actual &&
+ git name-rev --stdin --name-only --refs="*tags/*" \
+ < actual > actual.named &&
+ test_cmp actual.named expect
+'
+
test_expect_success '--cherry-pick with independent, but identical branches' '
git symbolic-ref HEAD refs/heads/independent &&
rm .git/index &&