(&self, file: &ParsedFile)
| 2227 | } |
| 2228 | |
| 2229 | fn file_ignored_for_import(&self, file: &ParsedFile) -> bool { |
| 2230 | match file.operation { |
| 2231 | FileOperation::Renamed => { |
| 2232 | let old_ignored = file |
| 2233 | .old_path |
| 2234 | .as_deref() |
| 2235 | .is_some_and(|old_path| self.path_ignored_for_import(old_path)); |
| 2236 | old_ignored && self.path_ignored_for_import(&file.path) |
| 2237 | } |
| 2238 | _ => self.path_ignored_for_import(&file.path), |
| 2239 | } |
| 2240 | } |
| 2241 | |
| 2242 | fn apply_import_ignores(&self, commit: &mut ParsedCommit) { |
| 2243 | if self.ignore_matcher.is_empty() || commit.files.is_empty() { |
no test coverage detected