Skip to main content

branch_exists

Function branch_exists 

Source
pub fn branch_exists(repo: &Repository, name: &str) -> bool
Expand 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.