diff options
author | Nguyễn Thái Ngọc Duy <pclouds@gmail.com> | 2010-12-15 16:02:56 +0100 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2011-02-03 23:08:31 +0100 |
commit | b31f688040d07ed8a6fd887e2960db005c20d832 (patch) | |
tree | d4478011e64822433c202f34f402ebedb01ce345 /t/t7810-grep.sh | |
parent | grep: drop pathspec_matches() in favor of tree_entry_interesting() (diff) | |
download | git-b31f688040d07ed8a6fd887e2960db005c20d832.tar.xz git-b31f688040d07ed8a6fd887e2960db005c20d832.zip |
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 c8777589ca..8a7788dc39 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 |