Skip to main content

gitignore_excludes

Function gitignore_excludes 

Source
fn gitignore_excludes(root: &Path, path: &Path) -> bool
Expand description

Honour .gitignore / .ignore from the index root down to path.

Never reads a file above root. A ! whitelist in those files cannot undo ExclusionMatcher::is_excluded secret/hidden decisions because those run first.