(&self, file: &ParsedFile)
| 2183 | } |
| 2184 | |
| 2185 | fn file_ignored_for_import(&self, file: &ParsedFile) -> bool { |
| 2186 | match file.operation { |
| 2187 | FileOperation::Renamed => { |
| 2188 | let old_ignored = file |
| 2189 | .old_path |
| 2190 | .as_deref() |
| 2191 | .is_some_and(|old_path| self.path_ignored_for_import(old_path)); |
| 2192 | old_ignored && self.path_ignored_for_import(&file.path) |
| 2193 | } |
| 2194 | _ => self.path_ignored_for_import(&file.path), |
| 2195 | } |
| 2196 | } |
| 2197 | |
| 2198 | fn apply_import_ignores(&self, commit: &mut ParsedCommit) { |
| 2199 | if self.ignore_matcher.is_empty() || commit.files.is_empty() { |
no test coverage detected