pub fn parse_git_version(output: &str) -> Result<GitVersion, WorktreeError>Expand description
Parse the output of git --version into a GitVersion.
Handles format variations:
- “git version 2.43.0”
- “git version 2.39.3 (Apple Git-146)”
- “git version 2.43.0.windows.1”