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: v1.7.5-rc0~68^2~2 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=b31f688040d07ed8a6fd887e2960db005c20d832;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 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 <