Function get_current_branch
Source pub fn get_current_branch(_path: &Path) -> Result<String>
Expand description
Gets the current branch name of the git repository at the specified path.
§Parameters
path: The path to the git repository.
§Returns
Ok(String) with the current branch name.
Err(Error) if an error occurred while getting the branch name.