snippetbashTip
jj diff — Compare file contents between two revisions. More information: <https://docs.jj-vcs.dev/latest/cli-r
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 diffShow 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 --statShow a Git-format diff:
jj diff --gitCode Snippets
Show changes of current revision
jj diffShow 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 --statShow a Git-format diff
jj diff --gitContext
tldr-pages: common/jj diff
Revisions (0)
No revisions yet.