Skip to main content

get_current_branch

Function get_current_branch 

Source
pub fn get_current_branch<P: AsRef<Path>>(
    repo_path: P,
) -> Result<String, GitError>
Expand description

Get the current branch name.