Check if a path should be ignored (always-ignored patterns). This checks against built-in patterns like `.atomic/` and `.git/`.
(path: &Path)
| 735 | /// |
| 736 | /// This checks against built-in patterns like `.atomic/` and `.git/`. |
| 737 | pub fn is_always_ignored(path: &Path) -> bool { |
| 738 | for component in path.components() { |
| 739 | if let std::path::Component::Normal(name) = component { |
| 740 | if let Some(name_str) = name.to_str() { |
| 741 | if ALWAYS_IGNORED.contains(&name_str) { |
| 742 | return true; |
| 743 | } |
| 744 | } |
| 745 | } |
| 746 | } |
| 747 | false |
| 748 | } |
| 749 | |
| 750 | /// Hash the contents of a file using Blake3. |
| 751 | /// |
no test coverage detected