We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Given the following reproduction:
mkdir /tmp/ignoretest cd /tmp/ignoretest mkdir foo touch foo/bar.js echo > .gitignore <<'EOT' /*/ !/foo/ EOT git init git add . git status
The foo/bar.js file got added to the repository. Doing the same on ignore, however:
foo/bar.js
ignore
const ignore = require(`ignore`); ignore().add([ `/*/`, `!/foo/`, ]).ignores(`foo/bar.js`) // true
The text was updated successfully, but these errors were encountered:
gitignore rules changes in 2.22.1!
Sorry, something went wrong.
d08bb48
landed in 5.1.3
5.1.3
Successfully merging a pull request may close this issue.
Given the following reproduction:
The
foo/bar.js
file got added to the repository. Doing the same onignore
, however:The text was updated successfully, but these errors were encountered: