summaryrefslogtreecommitdiff
path: root/t
diff options
context:
space:
mode:
authorLibravatar Junio C Hamano <gitster@pobox.com>2011-05-11 15:14:13 -0700
committerLibravatar Junio C Hamano <gitster@pobox.com>2011-05-11 15:14:13 -0700
commit25197ebe7f813407b028a2c304ff8ee58da40a16 (patch)
tree9f9ebe5eb6811655054bf4fc0f818cb2f8cfb5e4 /t
parentt3703, t4208: add test cases for magic pathspec (diff)
parentsetup_revisions(): take pathspec from command line and --stdin correctly (diff)
downloadtgif-25197ebe7f813407b028a2c304ff8ee58da40a16.tar.xz
Merge branch 'jc/maint-1.6.6-pathspec-stdin-and-cmdline'
* jc/maint-1.6.6-pathspec-stdin-and-cmdline: setup_revisions(): take pathspec from command line and --stdin correctly
Diffstat (limited to 't')
-rwxr-xr-xt/t6017-rev-list-stdin.sh17
1 files changed, 17 insertions, 0 deletions
diff --git a/t/t6017-rev-list-stdin.sh b/t/t6017-rev-list-stdin.sh
index f1c32dba42..667b37564e 100755
--- a/t/t6017-rev-list-stdin.sh
+++ b/t/t6017-rev-list-stdin.sh
@@ -58,4 +58,21 @@ check side-3 ^side-4 -- file-3
check side-3 ^side-2
check side-3 ^side-2 -- file-1
+test_expect_success 'not only --stdin' '
+ cat >expect <<-EOF &&
+ 7
+
+ file-1
+ file-2
+ EOF
+ cat >input <<-EOF &&
+ ^master^
+ --
+ file-2
+ EOF
+ git log --pretty=tformat:%s --name-only --stdin master -- file-1 \
+ <input >actual &&
+ test_cmp expect actual
+'
+
test_done