Skip to main content

is_session_worktree

Function is_session_worktree 

Source
pub fn is_session_worktree(root: &Path, wt_path: &Path) -> bool
Expand description

Returns true if wt_path is a session worktree of root:

  • directly under <root>/.wt/ with no <root>/.wt/<name>.start.json, or
  • under <root>/.claude/worktrees/ (excluding any nested .wt run worktrees).