Check if a path should be ignored. This is a convenience method that loads ignore rules and checks the path. If you need to check multiple paths, use [`Self::ignore_rules()`] instead to avoid reloading the rules for each check. # Arguments `path` - Path to check (relative to repository root) `is_dir` - Whether the path is a directory # Returns `true` if the path should be ignored, `false` oth
(&self, path: &Path, is_dir: bool)
| 52 | /// |
| 53 | /// `true` if the path should be ignored, `false` otherwise. |
| 54 | pub fn is_ignored(&self, path: &Path, is_dir: bool) -> bool { |
| 55 | let rules = self.ignore_rules(); |
| 56 | rules.is_ignored(path, is_dir) |
| 57 | } |
| 58 | |
| 59 | /// Save a change to the repository. |
| 60 | /// |
no test coverage detected