Skip to main content

worktree_holding

Function worktree_holding 

Source
pub async fn worktree_holding(
    repo: &Path,
    branch: &str,
) -> Result<Option<PathBuf>>
Expand description

Where branch is checked out, if some worktree holds it.

Read from git worktree list --porcelain rather than out of an error message, which varies with git’s version and locale.