pub fn render_diff(preview: &DiffPreview, context: &ViewContext) -> Vec<Line>Expand description
Renders a diff preview, choosing split or unified based on terminal width and whether the diff has removals.
For new files (only additions, no removals), uses unified view since split view would have an empty left panel.