Files
tldr/pages/common/jj-interdiff.md
T
Emmanuel Ferdman faee76f19d jj-interdiff: add page (#19540)
Signed-off-by: Emmanuel Ferdman <emmanuelferdman@gmail.com>
Co-authored-by: Sahil Afrid Farookhi <msafarookhi@gmail.com>
2025-11-23 19:36:48 -06:00

865 B

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