pub fn format_diff(diff: &Diff<'_, '_>, config: &DiffFormat) -> StringExpand 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.