Skip to main content

cleanup_orphaned_worktrees

Function cleanup_orphaned_worktrees 

Source
pub fn cleanup_orphaned_worktrees(base_dir: &Path) -> WorktreeGcReport
Expand description

Scans <base_dir>/<instance_id>/ and removes worktrees owned by exited PIDs while sparing every instance whose .pid process is still alive.