Skip to main content

get_current_branch

Function get_current_branch 

Source
pub fn get_current_branch() -> Result<String>
Expand description

Get the current branch name. Returns the branch name for the current HEAD, including “HEAD” for detached HEAD state.