Reload ignore rules from disk. This is useful if the ignore files have changed.
(&mut self)
| 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 | /// |