Skip to content

"ignore" crate: Possible to test single paths for ignore status? #2862

Answered by BurntSushi
blinry asked this question in Q&A
Discussion options

You must be logged in to vote

No, it isn't. This is something I'd like to support in the future, but the entire ignore crate needs to be re-thought from the ground-up before I'd be willing to tackle it. I've been saying for a long time that the crate needs to be rewritten and it hasn't happened yet, so I wouldn't hold my breath unfortunately.

If this is a requirement for your project, you'll need to implement this on your own. You can probably reuse some components from ignore though, like the Gitignore matcher.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@blinry
Comment options

Answer selected by blinry
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants