Skip to main content

get_active_worktree

Function get_active_worktree 

Source
pub fn get_active_worktree(
    spec_id: &str,
    project_name: Option<&str>,
) -> Option<PathBuf>
Expand description

Returns the worktree path for a spec if an active worktree exists.

Returns Some(path) if the worktree directory exists, None otherwise.