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

Method ignore_rules

atomic-repository/src/repository/changes.rs:124–130  ·  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(working_copy)?; if rules.is

(
        &self,
        working_copy: WorkingCopyId,
    )

Source from the content-addressed store, hash-verified

122 /// }
123 /// ```
124 pub fn ignore_rules(
125 &self,
126 working_copy: WorkingCopyId,
127 ) -> Result<IgnoreRules, RepositoryError> {
128 self.validate_working_copy(working_copy)?;
129 Ok(self.load_ignore_rules())
130 }
131
132 pub(super) fn load_ignore_rules(&self) -> IgnoreRules {
133 IgnoreRules::load(&self.root)

Callers 2

print_ignore_debugMethod · 0.45
is_ignoredMethod · 0.45

Calls 2

validate_working_copyMethod · 0.80
load_ignore_rulesMethod · 0.80

Tested by

no test coverage detected