Diff Viewer
Compare working-tree, staged, and historical changes with inline or side-by-side diffs.
Updated
Athas includes a powerful diff viewer.
Viewing Diffs
From Source Control
- Open the Source Control panel
- Click on any changed file
- The diff viewer opens showing changes
From Commit History
- Open the commit history
- Click on any commit
- Click on a file to view its diff
Diff Modes
Inline Diff
Shows additions and deletions inline:
- Green background for additions
- Red background for deletions
Side-by-Side Diff
Shows old and new versions side by side:
- Left pane: original
- Right pane: modified
Gutter Indicators
In the editor, the gutter shows Git change indicators:
- Green bar: Added lines
- Red bar: Deleted lines
- Yellow bar: Modified lines
Click on these indicators to see the original content.
Inline Blame
Enable inline blame in Settings > Git or toggle with Cmd/Ctrl+Shift+B.
What a diff proves
A working-tree diff shows saved changes; a staged diff shows what the next commit includes. Compare the correct versions and check the active branch. A clean diff does not prove tests passed. Return to Source Control to stage and commit the reviewed change.