X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=t%2Ft7810-grep.sh;h=8a7788dc39f236b15e60912c384d835fd1db5a28;hb=70ae2beadd45d1874ffbfba2d5c45ea9fd2af12c;hp=c8777589ca1c89825b570cfc05405a39df39aaba;hpb=b5c178143088350c49129acbedb864d70c666215;p=git.git diff --git a/t/t7810-grep.sh b/t/t7810-grep.sh index c8777589c..8a7788dc3 100755 --- a/t/t7810-grep.sh +++ b/t/t7810-grep.sh @@ -182,6 +182,24 @@ do test_cmp expected actual ' + test_expect_success "grep --max-depth 0 -- . t $L" ' + { + echo ${HC}t/v:1:vvv + echo ${HC}v:1:vvv + } >expected && + git grep --max-depth 0 -n -e vvv $H -- . t >actual && + test_cmp expected actual + ' + + test_expect_success "grep --max-depth 0 -- t . $L" ' + { + echo ${HC}t/v:1:vvv + echo ${HC}v:1:vvv + } >expected && + git grep --max-depth 0 -n -e vvv $H -- t . >actual && + test_cmp expected actual + ' + done cat >expected <