Get only modified files.
(&self)
| 479 | |
| 480 | /// Get only modified files. |
| 481 | pub fn modified_files(&self) -> Result<Vec<PathBuf>, RepositoryError> { |
| 482 | let status = self.status(StatusOptions::default())?; |
| 483 | Ok(status.modified().map(|e| e.path().to_path_buf()).collect()) |
| 484 | } |
| 485 | |
| 486 | /// Get only untracked files. |
| 487 | pub fn untracked_files(&self) -> Result<Vec<PathBuf>, RepositoryError> { |