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,
)
| 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) |
no test coverage detected