Check if the working copy is clean (no modifications).
(&self)
| 504 | |
| 505 | /// Check if the working copy is clean (no modifications). |
| 506 | pub fn is_working_copy_clean(&self) -> Result<bool, RepositoryError> { |
| 507 | let status = self.status(StatusOptions::fast())?; |
| 508 | Ok(status.is_clean()) |
| 509 | } |
| 510 | |
| 511 | /// Get only modified files. |
| 512 | pub fn modified_files(&self) -> Result<Vec<PathBuf>, RepositoryError> { |