diffview 0.1.0

Side-by-side terminal diff viewer
diffview-0.1.0 is not a library.

diffview

Side-by-side terminal diff viewer for git output.

Installation

From crates.io:

cargo install diffview

From GitHub:

cargo install --git https://github.com/dainduncan-dev/diffview

Usage

Run against the current repo diff:

diffview

Pass through git diff arguments after --:

diffview -- --staged

Read from stdin:

git diff | diffview --stdin

Read from a diff file:

diffview --diff-file path/to/diff.txt

Keys

  • j/k or arrows: scroll
  • ctrl+u/d: page up/down
  • n/p: next/prev hunk
  • f/b: next/prev file
  • 1-9: jump to file index
  • g/G: top/bottom
  • u: toggle untracked
  • q: quit

Notes

  • Untracked view uses git ls-files and git diff --no-index.