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

Method new

atomic-agent/src/watcher/mod.rs:153–161  ·  view source on GitHub ↗

Create a new `WatcherConfig` for the given repository root. The `.atomic/` directory is automatically added to the ignore list.

(repo_root: impl Into<PathBuf>)

Source from the content-addressed store, hash-verified

151 ///
152 /// The `.atomic/` directory is automatically added to the ignore list.
153 pub fn new(repo_root: impl Into<PathBuf>) -> Self {
154 Self {
155 repo_root: repo_root.into(),
156 ignore_patterns: Self::DEFAULT_IGNORE
157 .iter()
158 .map(|s| (*s).to_string())
159 .collect(),
160 }
161 }
162
163 /// Add a glob pattern to the ignore list.
164 ///

Callers

nothing calls this directly

Calls 2

collectMethod · 0.45
iterMethod · 0.45

Tested by

no test coverage detected