Skip to main content

is_ignored

Function is_ignored 

Source
pub fn is_ignored(root: &Path, rel: &Path) -> bool
Expand description

Whether the repository is told to ignore rel, a path relative to root.

Ignoring a file marks it as not part of what the repo publishes. That is the same fact tracked already reads the index for. So an ignored file is not a forgotten one, and nothing should ask its author to commit it.

A file under an ignored directory is ignored too, as git has it. gix matches the one path it is given, so each parent directory is checked first.