Opens your diff tool for each changed file, comparing the server’s version with yours. Run it from the root of a checkout (the folder that contains .mmt). File names are relative to that folder; on Windows use backslashes (templates\sfnt.mvt), because a path with forward slashes doesn’t match and is silently ignored.
Before you begin#
Set the diff setting with mmt config set. MMT runs it as <your diff command> <server copy> <your file>.
Usage#
mmt diff [filepaths ...]
Arguments#
| Argument | Short | Required | Description |
|---|---|---|---|
filepaths ... |
No | The list of local files to diff. If blank, all locally modified files will be diffed. |
Examples#
mmt config set diff -- code --diff --wait
mmt diff templates/sfnt.mvt
The server copy is the version from the changeset you checked out or last pulled, not the branch’s latest. To compare with the latest, pull first.