ok/jj
1
0
Fork 0
forked from mirrors/jj

git-comparison: add more diff commands

`jj diff` works a bit differently to `git diff`, so add more examples of
`jj diff` using `--from`.
This commit is contained in:
mlcui 2023-07-11 11:31:24 +10:00 committed by mlcui
parent 5c82100ef0
commit 2756f2f3da

View file

@ -134,6 +134,17 @@ parent.
<td><code>jj diff -r &lt;revision&gt;</code></td>
<td><code>git diff &lt;revision&gt;^ &lt;revision&gt;</code></td>
</tr>
<tr>
<td>Show diff from another change to the current change</td>
<td><code>jj diff --from &lt;revision&gt;</code></td>
<td><code>git diff &lt;revision&gt;</code></td>
</tr>
<tr>
<td>Show diff from change A to change B</td>
<td><code>jj diff --from A --to B</code></td>
<td><code>git diff A B</code></td>
</tr>
<tr>
<tr>
<td>Show description and diff of a change</td>
<td><code>jj show &lt;revision&gt;</code></td>