Skip to main content

parse_unified_diff

Function parse_unified_diff 

Source
pub fn parse_unified_diff(diff_text: &str) -> PunchResult<PatchSet>
Expand description

Parse a unified diff string into a PatchSet — decode the combo notation.

Handles standard unified diff format with ---/+++ file headers and @@ -old_start,old_count +new_start,new_count @@ hunk headers.