format_diff

Function format_diff 

Source
pub fn format_diff(diff: &Diff<'_, '_>, config: &DiffFormat) -> String
Expand description

Format the diff with the given configuration.

This chooses between compact (path-based) and tree (nested) format based on the number of changes and the configuration.