run.js icon indicating copy to clipboard operation
run.js copied to clipboard

Bugfix gitignore negated patterns

Open sparr opened this issue 1 year ago • 0 comments

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.

sparr avatar Sep 26 '24 15:09 sparr