Get only untracked files.
(&self)
| 652 | |
| 653 | /// Get only untracked files. |
| 654 | pub fn untracked_files(&self) -> Result<Vec<PathBuf>, RepositoryError> { |
| 655 | let status = self.status(StatusOptions::default())?; |
| 656 | Ok(status.untracked().map(|e| e.path().to_path_buf()).collect()) |
| 657 | } |
| 658 | |
| 659 | /// Get only deleted files. |
| 660 | pub fn deleted_files(&self) -> Result<Vec<PathBuf>, RepositoryError> { |