Get only modified files.
(&self)
| 510 | |
| 511 | /// Get only modified files. |
| 512 | pub fn modified_files(&self) -> Result<Vec<PathBuf>, RepositoryError> { |
| 513 | let status = self.status(StatusOptions::default())?; |
| 514 | Ok(status.modified().map(|e| e.path().to_path_buf()).collect()) |
| 515 | } |
| 516 | |
| 517 | /// Get only untracked files. |
| 518 | pub fn untracked_files(&self) -> Result<Vec<PathBuf>, RepositoryError> { |