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

Function is_always_ignored

atomic-repository/src/status.rs:870–881  ·  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

868///
869/// This checks against built-in patterns like `.atomic/` and `.git/`.
870pub 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).

Callers 2

is_enrichment_internalFunction · 0.85
should_ignore_with_rulesFunction · 0.85

Calls 2

componentsMethod · 0.80
containsMethod · 0.45

Tested by

no test coverage detected