sindresorhus / globby

User-friendly glob matching
MIT License
2.53k stars 130 forks source link

Respect gitignore negation syntax #161

Closed chuckdumont closed 3 years ago

chuckdumont commented 3 years ago

I have the following .gitignore file:

**/*
!README.md
!.gitignore

Using the {gitignore:true} option and a pattern of **/*, I would expect globby to return everything except README.md and .gitignore, but README.md is included in the results.

chuckdumont commented 3 years ago

User error