Get only untracked files.
(&self)
| 640 | |
| 641 | /// Get only untracked files. |
| 642 | pub fn untracked_files(&self) -> Result<Vec<PathBuf>, RepositoryError> { |
| 643 | let status = self.status(StatusOptions::default())?; |
| 644 | Ok(status.untracked().map(|e| e.path().to_path_buf()).collect()) |
| 645 | } |
| 646 | |
| 647 | /// Get only deleted files. |
| 648 | pub fn deleted_files(&self) -> Result<Vec<PathBuf>, RepositoryError> { |