Check if a path should be ignored (always-ignored patterns). This checks against built-in patterns like `.atomic/` and `.git/`.
(path: &Path)
| 868 | /// |
| 869 | /// This checks against built-in patterns like `.atomic/` and `.git/`. |
| 870 | pub fn is_always_ignored(path: &Path) -> bool { |
| 871 | for component in path.components() { |
| 872 | if let std::path::Component::Normal(name) = component { |
| 873 | if let Some(name_str) = name.to_str() { |
| 874 | if ALWAYS_IGNORED.contains(&name_str) { |
| 875 | return true; |
| 876 | } |
| 877 | } |
| 878 | } |
| 879 | } |
| 880 | false |
| 881 | } |
| 882 | |
| 883 | /// Whether a nested `.git` marker establishes an authoritative repository |
| 884 | /// boundary (review CB-9C R5, re-review EYL). |
no test coverage detected