Skip to main content

prune_worktrees

Function prune_worktrees 

Source
pub fn prune_worktrees(repo_root: &Path) -> Result<(), PawError>
Expand description

Prunes stale worktree registrations.

Runs git worktree prune to clean up references to worktrees whose directories no longer exist. This prevents “already registered worktree” errors when recreating worktrees after a previous session was purged.