(repo_path: &Path)
| 190 | } |
| 191 | |
| 192 | pub fn prune_worktrees(repo_path: &Path) -> Result<(), WorktreeError> { |
| 193 | if !is_git_repo(repo_path) { |
| 194 | return Err(WorktreeError::NotGitRepo); |
| 195 | } |
| 196 | |
| 197 | run_git(&["worktree", "prune"], repo_path)?; |
| 198 | Ok(()) |
| 199 | } |
no test coverage detected