run.js
run.js copied to clipboard
Bugfix gitignore negated patterns
The current handling of git ignore rules is incorrect for negated patterns.
foo*
!foobar
The above ignore rules should ignore foo* except for foobar and not ignore any other files. Currently the negated rule results in every other file being ignored (because every other file matches that rule according to minimatch).
This PR updates the ignore logic to handle negated rules correctly.