Skip to main content

prune

Function prune 

Source
pub fn prune()
Expand description

Forget worktrees whose directories no longer exist.

A run killed outright — SIGKILL, or a signal during a step that handles its own, like a subject’s version_cmd — cannot remove its checkout. The directory is in the system temporary directory and goes with it; this clears the bookkeeping git keeps for it, so stale entries do not pile up in git worktree list.