pub fn gitignore_excludes_path(root: &Path, path: &Path) -> FsResult<bool>Expand description
Return whether repository .gitignore rules exclude a path.
This helper is for single-path refreshes. Full repository scans use
ignore::WalkBuilder directly.
ยงErrors
Returns an error if the root cannot be canonicalized or a discovered
.gitignore file cannot be parsed.