Get only modified files.
(&self)
| 634 | |
| 635 | /// Get only modified files. |
| 636 | pub fn modified_files(&self) -> Result<Vec<PathBuf>, RepositoryError> { |
| 637 | let status = self.status(StatusOptions::default())?; |
| 638 | Ok(status.modified().map(|e| e.path().to_path_buf()).collect()) |
| 639 | } |
| 640 | |
| 641 | /// Get only untracked files. |
| 642 | pub fn untracked_files(&self) -> Result<Vec<PathBuf>, RepositoryError> { |