Skip to main content

parse_git_diff

Function parse_git_diff 

Source
pub fn parse_git_diff(bytes: &[u8]) -> Result<Vec<FileDiff>, DiffError>
Expand description

Parses and normalizes a multi-file Git diff.

ยงErrors

Returns an error when the patch is malformed, contains unsupported path encoding, or contains an invalid repository-relative path.