2025-06-26 22:14:42 +05:30
|
|
|
# jj diff
|
|
|
|
|
|
|
|
> Compare file contents between two revisions.
|
|
|
|
> More information: <https://jj-vcs.github.io/jj/latest/cli-reference/#jj-diff>.
|
|
|
|
|
|
|
|
- Show changes of current revision:
|
|
|
|
|
|
|
|
`jj diff`
|
|
|
|
|
2025-07-01 09:13:21 +05:30
|
|
|
- Show changes of given revsets (e.g. `B::D`, `A..D`, `B|C|D`, etc.):
|
2025-06-26 22:14:42 +05:30
|
|
|
|
|
|
|
`jj diff {{[-r|--revisions]}} {{revsets}}`
|
|
|
|
|
|
|
|
- Show changes from given revision to given revision:
|
|
|
|
|
|
|
|
`jj diff {{[-f|--from]}} {{from_revset}} {{[-t|--to]}} {{to_revset}}`
|
|
|
|
|
|
|
|
- Show diff statistics:
|
|
|
|
|
|
|
|
`jj diff --stat`
|
|
|
|
|
|
|
|
- Show a Git-format diff:
|
|
|
|
|
|
|
|
`jj diff --git`
|