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

Method reload

atomic-repository/src/ignore.rs:237–240  ·  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

235 ///
236 /// This is useful if the ignore files have changed.
237 pub fn reload(&mut self) {
238 self.global = load_global_ignore();
239 self.local = load_local_ignore(&self.repo_root);
240 }
241
242 /// Get the number of patterns in local rules.
243 ///

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