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

Method ignore_rules

atomic-repository/src/repository/changes.rs:36–38  ·  view source on GitHub ↗

Load ignore rules for this repository. This loads patterns from: - Global config: `~/.config/atomic/ignore` - Repository-local: `.atomicignore` in repository root The returned [`IgnoreRules`] can be used to check if paths should be ignored during tracking or status operations. # Example ```rust,ignore let repo = Repository::open(".")?; let rules = repo.ignore_rules(); if rules.is_ignored(Path

(&self)

Source from the content-addressed store, hash-verified

34 /// }
35 /// ```
36 pub fn ignore_rules(&self) -> IgnoreRules {
37 IgnoreRules::load(&self.root)
38 }
39
40 /// Check if a path should be ignored.
41 ///

Callers 8

print_ignore_debugMethod · 0.80
addMethod · 0.80
add_directoryMethod · 0.80
statusMethod · 0.80
is_ignoredMethod · 0.80
test_repo_ignore_rulesFunction · 0.80

Calls

no outgoing calls

Tested by 2

test_repo_ignore_rulesFunction · 0.64