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

Function should_ignore

atomic-repository/src/tracking/helpers.rs:113–115  ·  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

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

Callers

nothing calls this directly

Calls 1

should_ignore_with_rulesFunction · 0.85

Tested by

no test coverage detected