Skip to main content

current_worktree

Function current_worktree 

Source
pub fn current_worktree(repo: &Repository) -> Result<WorktreeDescriptor>
Expand description

Return the worktree that contains the current working directory.

Returns WorktreeError::NotInWorktree if the current directory is not inside any registered worktree.