Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add option to specify a list of include/exclude patterns #23

Open
hollasch opened this issue Oct 14, 2017 · 1 comment
Open

Add option to specify a list of include/exclude patterns #23

hollasch opened this issue Oct 14, 2017 · 1 comment
Labels

Comments

@hollasch
Copy link
Owner

hollasch commented Oct 14, 2017

This is similar to the old Perforce enlistment maps, where you supply a list of patterns for inclusion and exclusion. For example:

projects/one/...
-.../obj/
-.../lib/
-.../*.log
projects/two/...
-.../out/

It needs to be decided whether exclusion patterns apply to the nearest prior inclusion pattern, or to all included entries at that point in the process.

@hollasch
Copy link
Owner Author

hollasch commented May 1, 2019

This should probably be implemented in two ways.

A file of include/exclude patterns, similar to a Perforce enlistment map

As above, one pattern per line, support comments (#, //, /* ... */). Exclusions are patterns prefixed with a - character, whitespace allowed around the -.

A command-line switch to specify exclusion patterns

For example, --exclude <pattern1> <pattern2> .... Perhaps support optional --match switch if you want to provide the exclusions first.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant