pub fn branch_exists(repo: &Path, branch: &str) -> Result<bool, WorktreeError>
Check if a branch already exists.