Skip to content

Commit

Permalink
docs: Add missing "jj" to swap rebase example
Browse files Browse the repository at this point in the history
`jj rebase -r C -d A; rebase -s B -d C` is missing the second jj.

Although it would be cool if jj had syntax to chain commands like this, so I could write a "swap" alias.
  • Loading branch information
KingMob authored and martinvonz committed Mar 19, 2024
1 parent f865c1b commit e4053ea
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/git-comparison.md
Original file line number Diff line number Diff line change
Expand Up @@ -258,7 +258,7 @@ parent.
</tr>
<tr>
<td>Reorder changes from A-B-C-D to A-C-B-D</td>
<td><code>jj rebase -r C -d A; rebase -s B -d C</code> (pass change IDs,
<td><code>jj rebase -r C -d A; jj rebase -s B -d C</code> (pass change IDs,
not commit IDs, to not have to look up commit ID of rewritten C)</td>
<td><code>git rebase -i A</code></td>
</tr>
Expand Down

0 comments on commit e4053ea

Please sign in to comment.