pub fn git_worktree_prune(repo: &Path) -> Result<()>Expand description
Prune stale worktree administrative files from repo.
This removes git’s internal bookkeeping for any worktree whose working
directory no longer exists on disk, allowing a fresh git worktree add
to succeed for the same branch.
§Errors
Returns an error if the git command fails to spawn or exits non-zero.