Get only untracked files.
(&self)
| 516 | |
| 517 | /// Get only untracked files. |
| 518 | pub fn untracked_files(&self) -> Result<Vec<PathBuf>, RepositoryError> { |
| 519 | let status = self.status(StatusOptions::default())?; |
| 520 | Ok(status.untracked().map(|e| e.path().to_path_buf()).collect()) |
| 521 | } |
| 522 | |
| 523 | /// Get only deleted files. |
| 524 | pub fn deleted_files(&self) -> Result<Vec<PathBuf>, RepositoryError> { |