(&self, file: &ParsedFile)
| 2175 | } |
| 2176 | |
| 2177 | fn file_ignored_for_import(&self, file: &ParsedFile) -> bool { |
| 2178 | match file.operation { |
| 2179 | FileOperation::Renamed => { |
| 2180 | let old_ignored = file |
| 2181 | .old_path |
| 2182 | .as_deref() |
| 2183 | .is_some_and(|old_path| self.path_ignored_for_import(old_path)); |
| 2184 | old_ignored && self.path_ignored_for_import(&file.path) |
| 2185 | } |
| 2186 | _ => self.path_ignored_for_import(&file.path), |
| 2187 | } |
| 2188 | } |
| 2189 | |
| 2190 | fn apply_import_ignores(&self, commit: &mut ParsedCommit) { |
| 2191 | if self.ignore_matcher.is_empty() || commit.files.is_empty() { |
no test coverage detected