Check for uncommitted changes
(&self)
| 323 | |
| 324 | /// Check for uncommitted changes |
| 325 | pub fn has_changes(&self) -> Result<bool> { |
| 326 | let output = run_git(&self.shadow_repo_path, Some(&self.work_tree_path), &[ |
| 327 | "status", |
| 328 | "--porcelain", |
| 329 | ])?; |
| 330 | Ok(!output.stdout.is_empty()) |
| 331 | } |
| 332 | |
| 333 | /// Clean up shadow repository |
| 334 | pub async fn cleanup(&self, os: &Os) -> Result<()> { |
no test coverage detected