Check if the working copy is clean (no modifications).
(&self)
| 640 | |
| 641 | /// Check if the working copy is clean (no modifications). |
| 642 | pub fn is_working_copy_clean(&self) -> Result<bool, RepositoryError> { |
| 643 | let status = self.status(StatusOptions::fast())?; |
| 644 | Ok(status.is_clean()) |
| 645 | } |
| 646 | |
| 647 | /// Get only modified files. |
| 648 | pub fn modified_files(&self) -> Result<Vec<PathBuf>, RepositoryError> { |