Skip to content
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

crates/ignore: Allow filtering with predicate #1557

Closed
wants to merge 1 commit into from

Conversation

casey
Copy link
Contributor

@casey casey commented Apr 21, 2020

Adds WalkBuilder::filter_entry that takes a predicate to be applied to
all entries. If the predicate returns false on a given entry, that
entry and all children will be skipped.

Fixes: #1555

Adds `WalkBuilder::filter_entry` that takes a predicate to be applied to
all entries. If the predicate returns `false` on a given entry, that
entry and all children will be skipped.

Fixes: BurntSushi#1555
Copy link
Owner

@BurntSushi BurntSushi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Outstanding, thank you!

@BurntSushi BurntSushi added the rollup A PR that has been merged with many others in a rollup. label May 9, 2020
BurntSushi pushed a commit that referenced this pull request May 9, 2020
Adds `WalkBuilder::filter_entry` that takes a predicate to be applied to
all entries. If the predicate returns `false` on a given entry, that
entry and all children will be skipped.

Fixes #1555, Closes #1557
@BurntSushi BurntSushi closed this in 793c117 May 9, 2020
@casey
Copy link
Contributor Author

casey commented May 9, 2020

You're most welcome, thanks for merging!

@casey casey deleted the ignore-filter branch May 9, 2020 03:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
rollup A PR that has been merged with many others in a rollup.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Ignore: Skip files on MacOS hidden by attribute
2 participants