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:
parent
5c82100ef0
commit
2756f2f3da
1 changed files with 11 additions and 0 deletions
|
@ -134,6 +134,17 @@ parent.
|
|||
<td><code>jj diff -r <revision></code></td>
|
||||
<td><code>git diff <revision>^ <revision></code></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Show diff from another change to the current change</td>
|
||||
<td><code>jj diff --from <revision></code></td>
|
||||
<td><code>git diff <revision></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 <revision></code></td>
|
||||
|
|
Loading…
Reference in a new issue