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

Method load

atomic-repository/src/ignore.rs:126–134  ·  view source on GitHub ↗

Load ignore rules for a repository. This loads rules from the global ignore file and from the repository's `.gitignore`, `.ignore`, and `.atomicignore`. Missing files are silently ignored (not an error). Honoring `.gitignore` matters because it is what virtually every project already uses to exclude build artifacts. Without it a first `atomic record` in, say, a Next.js repository walks straight

(repo_root: &Path)

Source from the content-addressed store, hash-verified

124 ///
125 /// An `IgnoreRules` instance with all loaded patterns.
126 pub fn load(repo_root: &Path) -> Self {
127 let global = load_global_ignore();
128 let local = load_local_ignore(repo_root);
129 Self {
130 global,
131 local,
132 repo_root: repo_root.to_path_buf(),
133 }
134 }
135
136 /// Load ignore rules for knowledge-graph enrichment.
137 ///

Callers

nothing calls this directly

Calls 2

load_global_ignoreFunction · 0.85
load_local_ignoreFunction · 0.85

Tested by

no test coverage detected