Skip to main content

current_branch

Function current_branch 

Source
pub fn current_branch(repo: &Repository) -> Result<BranchHead>
Expand description

Resolve the checked-out branch, rejecting states a rewrite cannot handle.