mise dotfiles history diff
- Usage:
mise dotfiles history diff [FLAGS] [A] [B] - Effect: read-only
- Source code:
src/cli/dotfiles/history/diff.rs
Compare checkpoints, or your files against one
Without arguments, shows unsaved changes: the files on disk against the latest checkpoint. With one reference, shows what that checkpoint changed since the one before it. With two, compares them.
Arguments
[A]— Numeric checkpoint ID,latest,latest~N, orcommit:<sha>[B]— CompareAwith this checkpoint instead of its predecessor
Flags
--operation— Compare an operation with the checkpoint it saved before it ranWith no reference, uses the newest operation, ignoring later saves. With one reference, uses that operation. Fails if the operation's earlier checkpoint is unavailable instead of comparing an unrelated save.
-p --patch— Print the full patch instead of a per-file summary--path <PATH>— Restrict to one path (a file or a directory)--exit-code— Exit 1 when the two sides differ-h --help— Print help
Examples
Show unsaved changes
mise dot history diffShow what checkpoint 12 changed
mise dot history diff 12Print the full patch between two checkpoints
mise dot history diff 11 12 --patchShow what the newest operation changed
mise dot history diff --operation