Function get_branch_for_head

Source
pub fn get_branch_for_head(repo: &Repository) -> Result<Branch<'_>, Error>
Expand description

Resolved the branch for HEAD if one exists