pub fn get_git_info<P: AsRef<Path>>(repo_path: P) -> Result<GitInfo, GitError>
Get git repository information.