Skip to content

Is it possible to include an exception to a glob exclusion? #1645

Answered by BurntSushi
jpmor asked this question in General
Discussion options

You must be logged in to vote

@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.

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@jpmor
Comment options

@jpmor
Comment options

Answer selected by BurntSushi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants