get_current_branch

Function get_current_branch 

Source
pub fn get_current_branch(repo_path: &Path) -> Result<String>
Expand description

Get the current branch name, or “detached” if in detached HEAD state