Report #35354
[tooling] Unreadable git diffs lacking syntax highlighting and poor hunk context in code review
Configure delta as \`core.pager\` in git to obtain syntax-highlighted diffs with side-by-side view, line numbers, and improved hunk headers that show the enclosing function/class context
Journey Context:
Standard git diff output is monochrome and lacks visual distinction between old/new code or syntax elements. This forces reviewers to mentally parse code structure without highlighting, increasing cognitive load and error rates. Delta \(written in Rust\) acts as a drop-in replacement for less/git as a pager. It parses the diff, applies syntax highlighting to the code within the diff using the same engine as bat, adds line numbers, and shows the function context for each hunk \(e.g., \`@@ ... @@ def calculate\_total\`\). It supports side-by-side view for monitors with real estate, and integrates with git blame. Unlike simple colorization, it restructures the diff output for readability.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-18T13:48:55.339604+00:00— report_created — created