Get only deleted files.
(&self)
| 609 | |
| 610 | /// Get only deleted files. |
| 611 | pub fn deleted_files(&self) -> Result<Vec<PathBuf>, RepositoryError> { |
| 612 | let status = self.status(StatusOptions::default())?; |
| 613 | Ok(status.deleted().map(|e| e.path().to_path_buf()).collect()) |
| 614 | } |
| 615 | } |
| 616 | |
| 617 | /// Check whether a file has live content from a view's perspective. |