summaryrefslogtreecommitdiff
path: root/t
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2014-01-27 18:44:09 (GMT)
committerJunio C Hamano <gitster@pobox.com>2014-01-27 18:44:10 (GMT)
commit63763273de8cc7c928d4e8bae4795f84c9deabd4 (patch)
tree544860f2888acbfbe4f6d781c869c3449f6a6e0c /t
parent9bb528709878d26ac75bf0cb075cc694acd0d69d (diff)
parenta74352867e689d50ee9c368f24d4a64392e27a35 (diff)
downloadgit-63763273de8cc7c928d4e8bae4795f84c9deabd4.zip
git-63763273de8cc7c928d4e8bae4795f84c9deabd4.tar.gz
git-63763273de8cc7c928d4e8bae4795f84c9deabd4.tar.bz2
Merge branch 'jc/revision-range-unpeel'
"git log --left-right A...B" lost the "leftness" of commits reachable from A when A is a tag as a side effect of a recent bugfix. This is a regression in 1.8.4.x series. * jc/revision-range-unpeel: revision: propagate flag bits from tags to pointees revision: mark contents of an uninteresting tree uninteresting
Diffstat (limited to 't')
-rwxr-xr-xt/t6000-rev-list-misc.sh17
1 files changed, 17 insertions, 0 deletions
diff --git a/t/t6000-rev-list-misc.sh b/t/t6000-rev-list-misc.sh
index 15e3d64..3794e4c 100755
--- a/t/t6000-rev-list-misc.sh
+++ b/t/t6000-rev-list-misc.sh
@@ -56,4 +56,21 @@ test_expect_success 'rev-list A..B and rev-list ^A B are the same' '
test_cmp expect actual
'
+test_expect_success 'propagate uninteresting flag down correctly' '
+ git rev-list --objects ^HEAD^{tree} HEAD^{tree} >actual &&
+ >expect &&
+ test_cmp expect actual
+'
+
+test_expect_success 'symleft flag bit is propagated down from tag' '
+ git log --format="%m %s" --left-right v1.0...master >actual &&
+ cat >expect <<-\EOF &&
+ > two
+ > one
+ < another
+ < that
+ EOF
+ test_cmp expect actual
+'
+
test_done