tsv_ignore
gitignore-faithful hierarchical ignore matching (.gitignore, .formatignore, .prettierignore)
behind tsv format's file discovery — part of tsv.
The matcher is pure: locating the ignore files, reading them and walking directories are the
caller's jobs. Its contract is git check-ignore --no-index (no index: a tracked file a rule
matches is ignored), less the differences its docs list.
use ;
let mut stack = new;
stack.push_gitignore; // the root .gitignore
stack.push_formatignore; // read after every .gitignore
assert!;
assert!;
API docs: docs.rs/tsv_ignore.
Minimum supported Rust version: 1.94; raising it ships in a minor release. Release notes: CHANGELOG.md.
License: 0BSD