Skip to main content

parse_commit_output

Function parse_commit_output 

Source
pub fn parse_commit_output(output: &str) -> Vec<Commit>
Expand description

Parse git log output (formatted as %H%x1f%h%x1f%s%x1f%an%x1f%ae%x1f%b%x1e) into a vec of Commits.

Uses ASCII record separator (0x1e) between commits and unit separator (0x1f) between fields, so multi-line body text doesn’t break parsing.

The single record decoder for this wire format: every changelog path (parse_commit_output_with_files here, and the changelog stage’s git fetch) decodes through this function so the body / author fields can never drift between call sites.