(&self, commit: &mut ParsedCommit)
| 2196 | } |
| 2197 | |
| 2198 | fn apply_import_ignores(&self, commit: &mut ParsedCommit) { |
| 2199 | if self.ignore_matcher.is_empty() || commit.files.is_empty() { |
| 2200 | return; |
| 2201 | } |
| 2202 | |
| 2203 | commit |
| 2204 | .files |
| 2205 | .retain(|file| !self.file_ignored_for_import(file)); |
| 2206 | if commit.files.is_empty() { |
| 2207 | commit.is_empty = true; |
| 2208 | } |
| 2209 | } |
| 2210 | |
| 2211 | /// Import commits from a branch into an Atomic repository. |
| 2212 | /// |
no test coverage detected