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,
)
| 100 | /// } |
| 101 | /// ``` |
| 102 | pub fn ignore_rules( |
| 103 | &self, |
| 104 | working_copy: WorkingCopyId, |
| 105 | ) -> Result<IgnoreRules, RepositoryError> { |
| 106 | self.validate_working_copy(working_copy)?; |
| 107 | Ok(self.load_ignore_rules()) |
| 108 | } |
| 109 | |
| 110 | pub(super) fn load_ignore_rules(&self) -> IgnoreRules { |
| 111 | IgnoreRules::load(&self.root) |
no test coverage detected