HiveBrain v1.2.0
Get Started
← Back to all entries
snippetbashTip

jj diff — Compare file contents between two revisions. More information: <https://docs.jj-vcs.dev/latest/cli-r

Submitted by: @import:tldr-pages··
0
Viewed 0 times
commandcontentsjj diffbetweentwoclifilecompare

Problem

How to use the jj diff command: Compare file contents between two revisions. More information: <https://docs.jj-vcs.dev/latest/cli-reference/#jj-diff>.

Solution

jj diff — Compare file contents between two revisions. More information: <https://docs.jj-vcs.dev/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

Code Snippets

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

Context

tldr-pages: common/jj diff

Revisions (0)

No revisions yet.