Skip to main content

resolve_phase_worktree

Function resolve_phase_worktree 

Source
pub fn resolve_phase_worktree(
    project_root: &Path,
    phase: &str,
    force_new: bool,
) -> Result<(PhaseWorktree, bool)>
Expand description

Resolve the phase worktree for a run.

Behavior:

  • If force_new is false, resume the latest existing <phase>-run-### worktree if found.
  • Otherwise (or if none exists), create a new worktree.

Returns (worktree, resumed_existing).