mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-01-26 11:33:59 +00:00
38 lines
954 B
Plaintext
38 lines
954 B
Plaintext
---
|
|
syntax: markdown
|
|
tags: [tldr, common]
|
|
source: https://github.com/tldr-pages/tldr.git
|
|
---
|
|
# jj interdiff
|
|
|
|
> Compare changes of two revisions.
|
|
> More information: <https://docs.jj-vcs.dev/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`
|