-
Notifications
You must be signed in to change notification settings - Fork 984
New issue
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
Make ignored_content work with nested paths and directories #1738
Conversation
This may break some config files if they had a filter which included directories (like |
189c37d
to
6238b36
Compare
Can you rebase the PR? |
Better now? |
Hm no, it still contains lots of unrelated commits from master. The easiest way would be reset --hard on master and cherrypick the 2 relevant commits on it rather than merging |
Is it somewhat better now? |
Just had to remove strip_prefix(path) from file ignore code. Added tests for subdirectory globbing.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good, just a small tweak needed to a test
to confim that simple filename globs still match paths without strip_prefix
Done? GitHub still shows "Changes requested" even if I marked it as resolved, so I'm not sure. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yep sorry it's good
* Make ignored_content work with directories Just had to remove strip_prefix(path) from file ignore code. Added tests for subdirectory globbing. * Add documentation * add more tests to confim that simple filename globs still match paths without strip_prefix
IMPORTANT: Please do not create a Pull Request adding a new feature without discussing it first.
resolves #1701
Sanity check:
Code changes
next
branch?If the change is a new feature or adding to/changing an existing one: