mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-03-01 15:54:22 +00:00
Update cheatsheets
This commit is contained in:
37
tldr/jj-interdiff
Normal file
37
tldr/jj-interdiff
Normal file
@@ -0,0 +1,37 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, common]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# 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`
|
||||
Reference in New Issue
Block a user