Add more default excluded items
This commit is contained in:
parent
afaa402b31
commit
05c8153b1a
|
@ -32,8 +32,12 @@ impl ExcludedItems {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
if expression == "DEFAULT" {
|
if expression == "DEFAULT" {
|
||||||
// TODO add more files by default
|
if cfg!(target_family = "unix") {
|
||||||
checked_expressions.push("*/.git/*".to_string());
|
checked_expressions.push("*/.git/*,*/node_modules/*,*/lost+found/*,*/Trash/*,*/.Trash-*/*,*/snap/*".to_string());
|
||||||
|
}
|
||||||
|
if cfg!(target_family = "windows") {
|
||||||
|
checked_expressions.push("*/.git/*,*/node_modules/*,*/lost+found/*,*:/windows/*".to_string());
|
||||||
|
}
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
if !expression.contains('*') {
|
if !expression.contains('*') {
|
||||||
|
|
Loading…
Reference in a new issue