pub fn build_compact_diff_preview(
before: &str,
after: &str,
opts: &CompactDiffOptions,
) -> CompactDiffPreviewExpand description
Build a compact before/after diff preview. Added and context (unchanged)
lines are numbered at their post-edit positions; unchanged lines far from any
change are trimmed to CompactDiffOptions::max_unchanged_context lines on
each side; long added runs are collapsed with a … marker.