Skip to main content

compact_diff

Function compact_diff 

Source
pub fn compact_diff(
    old: &str,
    new: &str,
    path: &str,
    max_lines: usize,
) -> String
Expand description

Generate a compact unified diff between old and new content. Truncates to max_lines lines if the diff is too long.