diff options
author | Bert Wesarg <bert.wesarg@googlemail.com> | 2011-09-15 20:26:03 +0200 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2011-09-15 12:27:40 -0700 |
commit | a9e643668aa932d93528fffa573a13a28eb54556 (patch) | |
tree | 01f9914c85ef846250ae4c0d4b354dc0b3d20ba5 /t | |
parent | ac1d33dd0205c52fb168ddaa53b40aeb6f1ea7b5 (diff) | |
download | git-bw/grep-no-index-no-exclude.tar.gz |
grep --no-index: don't use git standard exclusionsbw/grep-no-index-no-exclude
The --no-index mode is intended to be used outside of a git repository, and
it does not make sense to apply the git standard exclusions outside a git
repositories.
Signed-off-by: Bert Wesarg <bert.wesarg@googlemail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't')
-rwxr-xr-x | t/t7002-grep.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/t/t7002-grep.sh b/t/t7002-grep.sh index bf4d4dcb2b..918d33f7d1 100755 --- a/t/t7002-grep.sh +++ b/t/t7002-grep.sh @@ -439,7 +439,6 @@ test_expect_success 'outside of git repository' ' mkdir -p non/git/sub && echo hello >non/git/file1 && echo world >non/git/sub/file2 && - echo ".*o*" >non/git/.gitignore && { echo file1:hello && echo sub/file2:world @@ -466,6 +465,7 @@ test_expect_success 'inside git repository but with --no-index' ' echo world >is/git/sub/file2 && echo ".*o*" >is/git/.gitignore && { + echo ".gitignore:.*o*" && echo file1:hello && echo sub/file2:world } >is/expect.full && |