Skip to main content

diff_text

Function diff_text 

Source
pub fn diff_text(old: &str, new: &str, options: &UnifiedOptions) -> String
Expand description

Compares two plain-text snapshots (old, new) as a standard unified patch (Git C-style quoted names, @@ hunk headers, context-line surroundings, \ No newline at end of file markers when the last line has no newline). Backs jubarte diff and the bindings; CRLF line ends are normalized to LF. Returns an empty string when old == new.