pub fn parse(diff: &str) -> ParsedDiffExpand description
Parse a unified diff string into structured lines.
Handles the standard unified diff format:
diff --git a/file b/file
--- a/file
+++ b/file
@@ -1,3 +1,4 @@
context
-removed
+addedpub fn parse(diff: &str) -> ParsedDiffParse a unified diff string into structured lines.
Handles the standard unified diff format:
diff --git a/file b/file
--- a/file
+++ b/file
@@ -1,3 +1,4 @@
context
-removed
+added