Get only modified files.
(&self)
| 646 | |
| 647 | /// Get only modified files. |
| 648 | pub fn modified_files(&self) -> Result<Vec<PathBuf>, RepositoryError> { |
| 649 | let status = self.status(StatusOptions::default())?; |
| 650 | Ok(status.modified().map(|e| e.path().to_path_buf()).collect()) |
| 651 | } |
| 652 | |
| 653 | /// Get only untracked files. |
| 654 | pub fn untracked_files(&self) -> Result<Vec<PathBuf>, RepositoryError> { |