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

Method empty

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

Create an empty IgnoreRules (ignores nothing except built-in patterns). This is useful for testing or when you want to start fresh.

(repo_root: &Path)

Source from the content-addressed store, hash-verified

147 ///
148 /// This is useful for testing or when you want to start fresh.
149 pub fn empty(repo_root: &Path) -> Self {
150 Self {
151 global: None,
152 local: None,
153 repo_root: repo_root.to_path_buf(),
154 }
155 }
156
157 /// Load ignore rules from a specific file only.
158 ///

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected