new_feature.processes
new_feature.processes
Inspect Linux process working directories before removing a worktree.
worktree_processes(worktree: Path, *, proc_root: Path = Path('/proc')) -> list[int]
Find same-user processes with a working directory inside this worktree.
require_no_worktree_processes(worktree: Path) -> None
Refuse removal while a visible same-user process uses this working directory.