2025-07-24 22:27:13 -06:00
|
|
|
# jj diff
|
|
|
|
|
|
|
|
|
|
> Compare file contents between two revisions.
|
2026-02-18 06:55:01 -07:00
|
|
|
> More information: <https://docs.jj-vcs.dev/latest/cli-reference/#jj-diff>.
|
2025-07-24 22:27:13 -06:00
|
|
|
|
|
|
|
|
- Show changes of current revision:
|
|
|
|
|
|
|
|
|
|
`jj diff`
|
|
|
|
|
|
|
|
|
|
- Show changes of given revsets (e.g. `B::D`, `A..D`, `B|C|D`, etc.):
|
|
|
|
|
|
|
|
|
|
`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`
|