Skip to main content

truncate_diff

Function truncate_diff 

Source
pub fn truncate_diff(diff: &str, max_chars: usize) -> String
Expand description

Truncate diff content with context preservation.

Keeps the beginning and end of the diff to show what changed, hiding the middle if too long.