mantish/ help / docs
Join the waitlist

Mantish Diff

A semantic diff you can run from any shell — two files, two directories, or the repository you are in.

Last updated

mantish diff is the Mantish review engine with a command line in front of it. Instead of opening a pull request, you point it at whatever you want to look at right now:

sh
mantish diff                       # the working tree, against HEAD
mantish diff Order.cs Order.new.cs # two files
mantish diff old/ new/             # two directories
mantish diff main...feature        # a branch, as a pull request would show it

What makes it different from git diff

Mantish does not just align lines. The engine parses both sides and classifies every change: modified:logic, added:breaking, modified:formatting, a rename, a moved block, an extracted method. Once changes have names, you can act on them:

  • Mute what you do not want to focus on — it is still there, just de-emphasised.
  • Hide it — formatting, whitespace and import churn never reach the output at all.
  • Spotlight what you must not miss — breaking changes, new dependencies, disabled tests.

What was left out is always accounted for, so a quiet diff is never a silent one: every text output counts the files it left out, and --stats reports every hidden edit, by reason.

Mantish diff, interactive review
Mantish diff, interactive review

Two ways to run it

WhenWhat you get
InteractiveYou run it in a terminalThe full Mantish review screen — navigate, fold, reveal
Text / JSONYou pipe it, redirect it, or ask for a formatdiff, side-by-side, markdown or json on stdout

You do not have to choose: --format auto (the default) opens the review screen when stdin and stdout are both terminals, and writes diff text otherwise. mantish diff | less just works.

What it is not

The text output is a filtered review, not a patch. Every document says so — its first line reads # mantish-review v1 (a filtered review, not a patch), and the JSON document carries patchApplicable: false. Hidden changes are removed from it on purpose, so it cannot be fed to git apply — use git diff when you need a patch, and Mantish when you need to read one.

Where to go next

Was this page helpful?