(&self, file: &ParsedFile)
| 2114 | } |
| 2115 | |
| 2116 | fn file_ignored_for_import(&self, file: &ParsedFile) -> bool { |
| 2117 | match file.operation { |
| 2118 | FileOperation::Renamed => { |
| 2119 | let old_ignored = file |
| 2120 | .old_path |
| 2121 | .as_deref() |
| 2122 | .is_some_and(|old_path| self.path_ignored_for_import(old_path)); |
| 2123 | old_ignored && self.path_ignored_for_import(&file.path) |
| 2124 | } |
| 2125 | _ => self.path_ignored_for_import(&file.path), |
| 2126 | } |
| 2127 | } |
| 2128 | |
| 2129 | fn apply_import_ignores(&self, commit: &mut ParsedCommit) { |
| 2130 | if self.ignore_matcher.is_empty() || commit.files.is_empty() { |
no test coverage detected