Open hollasch opened 7 years ago
This should probably be implemented in two ways.
As above, one pattern per line, support comments (#
, //
, /* ... */
). Exclusions are patterns prefixed with a -
character, whitespace allowed around the -
.
For example, --exclude <pattern1> <pattern2> ...
. Perhaps support optional --match
switch if you want to provide the exclusions first.
An alternative is prefix a pattern with !
to denote an exclusion pattern.
This is similar to the old Perforce enlistment maps, where you supply a list of patterns for inclusion and exclusion. For example:
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.