Skip to main content

current_branch

Function current_branch 

Source
pub fn current_branch(repo: &Path) -> Option<String>
Expand description

The branch a checkout is on, or None for a detached HEAD.