mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-07-10 22:25:24 +02:00
25 lines
478 B
Markdown
25 lines
478 B
Markdown
![]() |
# 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`
|
||
|
|
||
|
- Show changes of given revsets:
|
||
|
|
||
|
`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`
|