How to Read a Unified Diff: Plus, Minus and @@ Markers
By Handy Tool Online ·
Short answer: In a unified diff, lines starting with - were removed, lines starting with + were added, and unmarked lines are unchanged context. The @@ headers show which line numbers each changed section covers.
The markers
- means the line exists only in the original, + means it exists only in the new version, and a leading space marks context.
Hunk headers
A header like @@ -10,6 +10,8 @@ means the hunk starts at line 10 in both files, covering 6 lines in the old version and 8 in the new.
Visual tools
Side-by-side diff checkers highlight the same changes in colour, which is easier for prose or contracts.
Try the tools
FAQ
Why are changed lines shown twice?
A modified line appears once as removed (-) and once as added (+).