MCPcopy Create free account
hub / github.com/atomicdotdev/atomic / is_always_ignored

Function is_always_ignored

atomic-repository/src/status.rs:737–748  ·  view source on GitHub ↗

Check if a path should be ignored (always-ignored patterns). This checks against built-in patterns like `.atomic/` and `.git/`.

(path: &Path)

Source from the content-addressed store, hash-verified

735///
736/// This checks against built-in patterns like `.atomic/` and `.git/`.
737pub 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///

Callers 2

is_enrichment_internalFunction · 0.85
should_ignore_with_rulesFunction · 0.85

Calls 1

containsMethod · 0.45

Tested by

no test coverage detected