git-grep while excluding files in a blacklist

2 messages, 2 authors, 2016-06-15 · open the first message on its own page

git-grep while excluding files in a blacklist

From: Dov Grobgeld <hidden>
Date: 2016-06-15 22:52:49

Does git-grep allow searching for a pattern in all files *except*
files matching a pattern. E.g. in our project we have multiple DLL's
in git, but when searching I would like to exclude these for speed. Is
that possible with git-grep?

Thanks,
Dov

Re: git-grep while excluding files in a blacklist

From: Nguyen Thai Ngoc Duy <hidden>
Date: 2016-06-15 22:52:49

On Tue, Jan 17, 2012 at 4:14 PM, Dov Grobgeld [off-list ref] wrote:
Does git-grep allow searching for a pattern in all files *except*
files matching a pattern. E.g. in our project we have multiple DLL's
in git, but when searching I would like to exclude these for speed. Is
that possible with git-grep?
Not from command line, no. You can put "*.dll" to .gitignore file then
"git grep --exclude-standard".
-- 
Duy
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help