.ie \n(.g .ds Aq \(aq .el .ds Aq ' .TH jj-diff 1 "diff " .SH NAME jj\-diff \- Compare file contents between two revisions .SH SYNOPSIS \fBjj diff\fR [\fB\-r\fR|\fB\-\-revisions\fR] [\fB\-R\fR|\fB\-\-repository\fR] [\fB\-f\fR|\fB\-\-from\fR] [\fB\-\-ignore\-working\-copy\fR] [\fB\-\-no\-integrate\-operation\fR] [\fB\-t\fR|\fB\-\-to\fR] [\fB\-\-ignore\-immutable\fR] [\fB\-T\fR|\fB\-\-template\fR] [\fB\-\-at\-operation\fR] [\fB\-s\fR|\fB\-\-summary\fR] [\fB\-\-debug\fR] [\fB\-\-stat\fR] [\fB\-\-color\fR] [\fB\-\-types\fR] [\fB\-\-name\-only\fR] [\fB\-\-quiet\fR] [\fB\-\-git\fR] [\fB\-\-no\-pager\fR] [\fB\-\-color\-words\fR] [\fB\-\-config\fR] [\fB\-\-config\-file\fR] [\fB\-\-tool\fR] [\fB\-\-context\fR] [\fB\-w\fR|\fB\-\-ignore\-all\-space\fR] [\fB\-b\fR|\fB\-\-ignore\-space\-change\fR] [\fB\-h\fR|\fB\-\-help\fR] [\fIFILESETS\fR] .SH DESCRIPTION Compare file contents between two revisions .PP 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. .PP 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. .PP If no option is specified, it defaults to `\-r @`. .SH OPTIONS .TP \fB\-r\fR, \fB\-\-revisions\fR \fI\fR 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 \*(AqA|C\*(Aq` 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 @`. .TP \fB\-f\fR, \fB\-\-from\fR \fI\fR Show changes from this revision If none of `\-r`, `\-f`, or `\-t` is provided, then the default is `\-r @`. .TP \fB\-t\fR, \fB\-\-to\fR \fI\fR Show changes to this revision If none of `\-r`, `\-f`, or `\-t` is provided, then the default is `\-r @`. .TP \fB\-h\fR, \fB\-\-help\fR Print help (see a summary with \*(Aq\-h\*(Aq) .TP [\fIFILESETS\fR] Restrict the diff to these paths .SH "DIFF FORMATTING OPTIONS" .TP \fB\-T\fR, \fB\-\-template\fR \fI