X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=t%2Ft6017-rev-list-stdin.sh;h=667b37564e3d31ca060216e841b9a5d9e385c165;hb=1320352501a73a91d77b7865993f322026d056d7;hp=f1c32dba423316641197dbfe19b2b95581acebad;hpb=12644fa99fd16c33379c885670be0963cec07fc1;p=git.git diff --git a/t/t6017-rev-list-stdin.sh b/t/t6017-rev-list-stdin.sh index f1c32dba4..667b37564 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 \ + actual && + test_cmp expect actual +' + test_done