pub fn branch_exists(repo: &Repository, name: &str) -> boolExpand description
Returns true if name matches a local branch or the short name of any
remote tracking branch (the part after the first /).
Moved from git-workon/src/main.rs into the library so resolve_action
can use it without re-opening the repository.