mantish/ help / docs
Join the waitlist

The interactive review

The review screen mantish diff opens in a terminal — keys, what is available, and what is not.

Last updated

mantish diff opens the same review screen as the Mantish queue when stdin and stdout are both terminals (--format auto, the default), or whenever you pass --format tui.

Files mode
Files mode

Where it lands

  • Files and directories: the first file opens straight into the diff. In directory mode the file navigator is one key away.
  • A repository (working tree, a commit, a range): the review overview, exactly like a local review opened from the queue — with E to edit the working tree. Its comments are made in the Mantish app (Local review tab).

Keys

KeyAction
j knext / previous change (muted hunks skipped unless revealed)
esplit ⇄ unified
mreveal / hide muted changes
zfold unchanged regions
Sdiff settings popup — applies live
f, [, ]file navigator, previous file, next file (directory mode)
space, Vmark a file viewed
r, :refreshre-read both sides from disk
q, escback; from the last screen, quit

r is worth remembering in file and directory mode: edit a side in your editor, press r, and the comparison is read from disk again. If nothing differs any more, the diff closes and says so.

Directory mode navigator
Directory mode navigator

Nothing is saved

A comparison is a session. The view layout, theme, keymap, whitespace mode and tag sets you change while it is open last until you quit, and are written to none of your configuration files. That is deliberate: a git difftool run must never rewrite the preferences you use every day.

Not available while comparing files

When you compare files or directories there is no pull request behind the screen, so these are off: votes, comments and threads, favorites, CI checks, the commit list, the dependency diagram, identical-change groups, cross-file lenses, file-tag grouping, the settings screen and the repository menu. Pressing one of those keys flashes a notice instead.

Repository comparisons are real local reviews and keep what a local review has — except comments, which for a local review are made in the Mantish app (Local review tab).

Was this page helpful?