Get only modified files.
(&self)
| 597 | |
| 598 | /// Get only modified files. |
| 599 | pub fn modified_files(&self) -> Result<Vec<PathBuf>, RepositoryError> { |
| 600 | let status = self.status(StatusOptions::default())?; |
| 601 | Ok(status.modified().map(|e| e.path().to_path_buf()).collect()) |
| 602 | } |
| 603 | |
| 604 | /// Get only untracked files. |
| 605 | pub fn untracked_files(&self) -> Result<Vec<PathBuf>, RepositoryError> { |