Skip to main content

Diff viewer

The diff viewer is the heart of GIT DELTA’s review experience.

Side-by-side diff

View modes

ModeWhen to use
Side by sideCompare old and new columns
UnifiedSingle column with + / - lines

Unified diff

Switch from the diff toolbar. Defaults live in Settings → Diff.

Options

OptionEffect
Ignore whitespaceHide whitespace-only noise
Context linesHow many unchanged lines around hunks (when not showing the full file)
Full file / Diff onlyEntire file vs changed regions
Combined reviewReview staged + unstaged together (read-oriented)
Markdown previewRendered preview for Markdown files
RefreshReload the current diff
MinimapOverview strip for long files

Syntax highlighting is applied for common languages.

Staging from the diff

On the working copy, hunks expose actions:

ActionEffect
Stage / Unstage hunkMove that hunk between index and worktree
Discard hunkThrow away that hunk (use Undo toast when available)
Stage / Unstage / Discard selected linesPartial staging for a selection

Example: stage one hunk

  1. Select an unstaged file
  2. Find the hunk you want
  3. Click Stage on that hunk
  4. Confirm the file (or remaining hunks) still appear under the right list

Empty state

When nothing is selected, the viewer shows an empty/placeholder state. Select a file from the list to load a diff.

History and PR diffs

The same viewer is used for:

Staging actions appear only where Git staging applies (working copy).