Skip to content

Diff Viewer

The diff viewer shows a full-screen, colored diff. It opens from several places in jjui:

  • Revisions: press d to view the diff for the highlighted revision
  • Revision ranges: press alt+d to compare two revision states
  • Details: press d to view the diff for the selected file
  • Evolog: press d to compare with the previous evolution entry
  • Oplog: press d to view the diff for the selected operation

Press esc or q to close the diff and return to the previous view.

From the Revisions view, press alt+d to start a range diff. The highlighted revision becomes the --from target, and the revision you choose next becomes the --to target. Press enter to open the result in the diff viewer.

While choosing the range:

KeyAction
j / k or arrowsMove through revisions
enterShow jj diff --from <from> --to <to>
xSwap the from and to targets
tPick the --to target from bookmarks or tags
fPick the --from target from bookmarks or tags
escCancel
KeyAction
j / k or arrowsScroll up / down
f / b or pgdown / pgupPage down / up
d / u or ctrl+d / ctrl+uHalf page down / up
gJump to top
GJump to bottom
h / l or left / rightScroll horizontally
wToggle line wrapping
ctrl+tChoose one changed file, or (all files) to restore the full diff
[ / ]Show the previous / next changed file

When line wrapping is enabled, long lines wrap within the viewport and horizontal scrolling is disabled.

The [ and ] shortcuts wrap at either end of the changed-file list. File selection and navigation are available for revision, Details, Diff Range, and Evolog diffs. Oplog diffs and static content opened through diff.show() do not retain the command arguments needed to load individual files.

Contribute Community