(&self)
| 1168 | } |
| 1169 | |
| 1170 | pub(crate) fn changed_paths(&self) -> Vec<PathBuf> { |
| 1171 | if let Some(stream) = &self.stream { |
| 1172 | return stream.changed_paths.clone(); |
| 1173 | } |
| 1174 | let mut paths = std::collections::BTreeSet::new(); |
| 1175 | for commit in &self.commits { |
| 1176 | for file in &commit.parsed.files { |
| 1177 | paths.insert(PathBuf::from(&file.path)); |
| 1178 | if let Some(old_path) = &file.old_path { |
| 1179 | paths.insert(PathBuf::from(old_path)); |
| 1180 | } |
| 1181 | } |
| 1182 | } |
| 1183 | paths.into_iter().collect() |
| 1184 | } |
| 1185 | } |
| 1186 | |
| 1187 | /// Fold the Git tree `tree_oid` into the tree OID the prospective gate must |
no test coverage detected