Skip to main content

parse

Function parse 

Source
pub fn parse(diff: &str) -> ParsedDiff
Expand 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
+added