From: Nguyễn Thái Ngọc Duy Date: Wed, 15 Dec 2010 15:02:56 +0000 (+0700) Subject: t7810: overlapping pathspecs and depth limit X-Git-Tag: ko-next~4^2 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=ee47d9326448d290432ddedcc09e1058ef2893c8;p=git.git t7810: overlapping pathspecs and depth limit Signed-off-by: Nguyễn Thái Ngọc Duy Signed-off-by: Junio C Hamano --- diff --git a/t/t7810-grep.sh b/t/t7810-grep.sh index 023f225a4..d89faeebb 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 <