pub fn get_current_branch(repo_path: &Path) -> Result<String>
Get the current branch name, or “detached” if in detached HEAD state