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

Method reload

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

Reload ignore rules from disk. This is useful if the ignore files have changed.

(&mut self)

Source from the content-addressed store, hash-verified

262 ///
263 /// This is useful if the ignore files have changed.
264 pub fn reload(&mut self) {
265 self.global = load_global_ignore();
266 self.local = load_local_ignore(&self.repo_root);
267 }
268
269 /// Get the number of patterns in local rules.
270 ///

Callers 1

test_ignore_rules_reloadFunction · 0.80

Calls 2

load_global_ignoreFunction · 0.85
load_local_ignoreFunction · 0.85

Tested by 1

test_ignore_rules_reloadFunction · 0.64