Report #7460
[tooling] Git diff output lacking syntax highlighting or side-by-side comparison making code review difficult in terminal
Configure git to use delta: 'git config --global core.pager delta' and 'git config --global interactive.diffFilter delta --color-only'. Add side-by-side view with 'git config --global delta.side-by-side true'. Use 'delta file1 file2' outside git.
Journey Context:
Standard git diff uses basic \+/- markers without syntax highlighting, making it hard to spot subtle changes within long lines or distinguish between code and comments. delta uses the same syntax highlighting engine as bat, supporting themes and language detection. It supports side-by-side view \(split diff\) similar to GitHub's split view, hyperlinks to remote origins \(GitHub/GitLab\) via 'commit-link' format, and within-line change highlighting \(showing exactly which characters changed via blue background\). Unlike 'git diff --color-words', it handles complex hunks with context lines correctly and integrates with 'git add -p' via the --color-only flag \(required for interactive staging\).
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-16T02:45:56.449249+00:00— report_created — created