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

Method load

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

Load ignore rules for a repository. This loads rules from both global and local ignore files. Missing files are silently ignored (not an error). # Arguments `repo_root` - The root directory of the repository # Returns An `IgnoreRules` instance with all loaded patterns.

(repo_root: &Path)

Source from the content-addressed store, hash-verified

107 ///
108 /// An `IgnoreRules` instance with all loaded patterns.
109 pub fn load(repo_root: &Path) -> Self {
110 let global = load_global_ignore();
111 let local = load_local_ignore(repo_root);
112 Self {
113 global,
114 local,
115 repo_root: repo_root.to_path_buf(),
116 }
117 }
118
119 /// Create an empty IgnoreRules (ignores nothing except built-in patterns).
120 ///

Callers

nothing calls this directly

Calls 2

load_global_ignoreFunction · 0.85
load_local_ignoreFunction · 0.85

Tested by

no test coverage detected