diff options
author | Nguyễn Thái Ngọc Duy <pclouds@gmail.com> | 2010-12-15 22:02:56 +0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2011-02-03 14:08:31 -0800 |
commit | b31f688040d07ed8a6fd887e2960db005c20d832 (patch) | |
tree | d4478011e64822433c202f34f402ebedb01ce345 /t/t7810-grep.sh | |
parent | 1376e50723228fc21b7183fe86d71ee484a70dd7 (diff) | |
download | git-b31f688040d07ed8a6fd887e2960db005c20d832.tar.gz git-b31f688040d07ed8a6fd887e2960db005c20d832.tar.xz |
t7810: overlapping pathspecs and depth limit
Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t7810-grep.sh')
-rwxr-xr-x | t/t7810-grep.sh | 18 |
1 files changed, 18 insertions, 0 deletions
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 <<EOF |