mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-03-13 10:59:20 +00:00
Update cheatsheets
This commit is contained in:
29
tldr/jj-diff
Normal file
29
tldr/jj-diff
Normal file
@@ -0,0 +1,29 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, common]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# 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 (e.g. `B::D`, `A..D`, `B|C|D`, etc.):
|
||||
|
||||
`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`
|
||||
Reference in New Issue
Block a user