jj-diff(1) General Commands Manual jj-diff(1) NAME jj-diff - Compare file contents between two revisions SYNOPSIS jj diff [-r|--revisions] [-R|--repository] [-f|--from] [--ignore-working-copy] [--no-integrate-operation] [-t|--to] [--ignore-immutable] [-T|--template] [--at-operation] [-s|--summary] [--debug] [--stat] [--color] [--types] [--name-only] [--quiet] [--git] [--no-pager] [--color-words] [--config] [--config-file] [--tool] [--context] [-w|--ignore-all-space] [-b|--ignore-space-change] [-h|--help] [FILESETS] DESCRIPTION Compare file contents between two revisions With the `-r` option, shows the changes compared to the parent revision. If there are several parent revisions (i.e., the given revision is a merge), then they will be merged and the changes from the result to the given revision will be shown. With the `--from` and/or `--to` options, shows the difference from/to the given revisions. If either is left out, it defaults to the working-copy commit. For example, `jj diff --from main` shows the changes from "main" (perhaps a bookmark name) to the working-copy commit. If no option is specified, it defaults to `-r @`. OPTIONS -r, --revisions Show changes in these revisions If there are multiple revisions, then the total diff for all of them will be shown. For example, if you have a linear chain of revisions A..D, then `jj diff -r B::D` equals `jj diff --from A --to D`. Multiple heads and/or roots are supported, but gaps in the revset are not supported (e.g. `jj diff -r 'A|C'` in a linear chain A..C). If a revision is a merge commit, this shows changes *from* the automatic merge of the contents of all of its parents *to* the contents of the revision itself. If none of `-r`, `-f`, or `-t` is provided, then the default is `-r @`. -f, --from Show changes from this revision If none of `-r`, `-f`, or `-t` is provided, then the default is `-r @`. -t, --to Show changes to this revision If none of `-r`, `-f`, or `-t` is provided, then the default is `-r @`. -h, --help Print help (see a summary with '-h') [FILESETS] Restrict the diff to these paths DIFF FORMATTING OPTIONS -T, --template