Get only deleted files.
(
&self,
working_copy: WorkingCopyId,
)
| 1245 | |
| 1246 | /// Get only deleted files. |
| 1247 | pub fn deleted_files( |
| 1248 | &self, |
| 1249 | working_copy: WorkingCopyId, |
| 1250 | ) -> Result<Vec<PathBuf>, RepositoryError> { |
| 1251 | let status = self.status(working_copy, StatusOptions::default())?; |
| 1252 | Ok(status.deleted().map(|e| e.path().to_path_buf()).collect()) |
| 1253 | } |
| 1254 | } |
| 1255 | |
| 1256 | /// Check whether an explicit delete still has surviving content spans. |
no test coverage detected