Skip to main content

find_worktree

Function find_worktree 

Source
pub fn find_worktree(
    repo: &Repository,
    name: &str,
) -> Result<WorktreeDescriptor>
Expand description

Find a worktree by its name or by its branch name.

Returns WorktreeError::NotFound if no matching worktree exists.