Is it possible to include an exception to a glob exclusion? #1645
-
If I have a directory Maybe something like: To make the example more concrete, I am working with a code base with many directories in Thanks! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
@jpmor The simplest solution would be to just specify those directories to search, e.g., |
Beta Was this translation helpful? Give feedback.
@jpmor The simplest solution would be to just specify those directories to search, e.g.,
-g 'foo/bar/**'
. But if that doesn't work, then you could do-g 'foo/**' -g '!foo/*' -g 'foo/bar'
or something like that. But the simplest way to express "search many directories but exclude all except one or two" is to just specify the one or two things you want to search.