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

Function should_ignore

atomic-repository/src/tracking/helpers.rs:116–118  ·  view source on GitHub ↗

Check if a path should be ignored during tracking. This checks (in order): 1. Internal directories (.atomic, .git) - always ignored 2. `.atomicignore` patterns (if rules provided) 3. Hidden files (if not included) # Arguments `path` - Path to check (relative to repository root) `include_hidden` - Whether to include hidden files (starting with '.') # Example ```rust,ignore use atomic_repositor

(path: &Path, include_hidden: bool)

Source from the content-addressed store, hash-verified

114/// assert!(should_ignore(Path::new("target/debug"), true, Some(&rules)));
115/// ```
116pub fn should_ignore(path: &Path, include_hidden: bool) -> bool {
117 should_ignore_with_rules(path, include_hidden, false, None)
118}
119
120/// Check if a path should be ignored during tracking, with optional ignore rules.
121///

Callers

nothing calls this directly

Calls 1

should_ignore_with_rulesFunction · 0.85

Tested by

no test coverage detected