summaryrefslogtreecommitdiff
path: root/t
diff options
context:
space:
mode:
authorLibravatar Junio C Hamano <gitster@pobox.com>2013-10-28 10:43:16 -0700
committerLibravatar Junio C Hamano <gitster@pobox.com>2013-10-28 10:43:16 -0700
commit2d99baab2f054926a1b26f7854fc50b701151bd7 (patch)
treebca89c2a53d6e85ef18d8c10bf84a85c798664f7 /t
parentMerge branch 'jx/relative-path-regression-fix' (diff)
parentrevision: do not peel tags used in range notation (diff)
downloadtgif-2d99baab2f054926a1b26f7854fc50b701151bd7.tar.xz
Merge branch 'jc/revision-range-unpeel'
"git rev-list --objects ^v1.0^ v1.0" gave v1.0 tag itself in the output, but "git rev-list --objects v1.0^..v1.0" did not. * jc/revision-range-unpeel: revision: do not peel tags used in range notation
Diffstat (limited to 't')
-rwxr-xr-xt/t6000-rev-list-misc.sh8
1 files changed, 8 insertions, 0 deletions
diff --git a/t/t6000-rev-list-misc.sh b/t/t6000-rev-list-misc.sh
index b10685af4e..15e3d6476c 100755
--- a/t/t6000-rev-list-misc.sh
+++ b/t/t6000-rev-list-misc.sh
@@ -48,4 +48,12 @@ test_expect_success 'rev-list --objects with pathspecs and copied files' '
! grep one output
'
+test_expect_success 'rev-list A..B and rev-list ^A B are the same' '
+ git commit --allow-empty -m another &&
+ git tag -a -m "annotated" v1.0 &&
+ git rev-list --objects ^v1.0^ v1.0 >expect &&
+ git rev-list --objects v1.0^..v1.0 >actual &&
+ test_cmp expect actual
+'
+
test_done