Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 32 additions & 0 deletions pages/common/jj-interdiff.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
# jj interdiff

> Compare changes of two revisions.
> More information: <https://jj-vcs.github.io/jj/latest/cli-reference/#jj-interdiff>.

- Compare changes from a revision to the working copy:

`jj interdiff {{[-f|--from]}} {{revset}}`

- Compare changes from a revision to another revision:

`jj interdiff {{[-f|--from]}} {{from_revset}} {{[-t|--to]}} {{to_revset}}`

- Compare changes in specific paths only:

`jj interdiff {{[-f|--from]}} {{from_revset}} {{[-t|--to]}} {{to_revset}} {{filesets}}`

- Show a summary of changes:

`jj interdiff {{[-f|--from]}} {{revset}} {{[-s|--summary]}}`

- Show diff statistics:

`jj interdiff {{[-f|--from]}} {{revset}} --stat`

- Show a Git-format diff:

`jj interdiff {{[-f|--from]}} {{revset}} --git`

- Show a word-level diff with changes indicated only by color:

`jj interdiff {{[-f|--from]}} {{revset}} --color-words`