use ;
use Path;
/// 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.