pruneRepoWorktrees
pruneRepoWorktrees(
repoPaths,opts?):Promise<PruneResult>
Defined in: src/tmp-sweep.ts:429
Runs git worktree prune for each supplied repo path. Unconditional — prunes every
orphaned record (missing working dir) regardless of how the dir vanished (reboot,
tmpfiles, manual rm). Per-repo try/catch: a failing repo is logged and skipped; the
rest still run. Never rejects. Returns { pruned, failed }.
Parameters
Section titled “Parameters”repoPaths
Section titled “repoPaths”string[]
PruneOpts
Returns
Section titled “Returns”Promise<PruneResult>