Skip to main content

is_ignored

Function is_ignored 

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

Whether file, inside workspace folder root, is one that walk_dir would skip: in a hidden or skip_folder, or ignored by a .gitignore / .ignore file between root and the file, or by .git/info/exclude. Used for files created after the workspace was indexed. (The global git excludes are only applied by walk_dir.)