mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-07-23 20:15:24 +02:00
jj-{absorb, evolog, restore}: add pages (#17129)
* jj-evolog: add page * jj-absorb: add page * jj-restore: add page * Fix typo in jj-restore --------- Co-authored-by: Wiktor Perskawiec <git@spageektti.cc>
This commit is contained in:
parent
178e5d74f5
commit
a8619a922f
3 changed files with 44 additions and 0 deletions
12
pages/common/jj-absorb.md
Normal file
12
pages/common/jj-absorb.md
Normal file
|
@ -0,0 +1,12 @@
|
||||||
|
# jj absorb
|
||||||
|
|
||||||
|
> Split changes in the source revision and move each change to the closest mutable ancestor where the corresponding lines were modified last.
|
||||||
|
> More information: <https://jj-vcs.github.io/jj/latest/cli-reference/#jj-absorb>.
|
||||||
|
|
||||||
|
- Move all changes from a revision to other revisions automatically:
|
||||||
|
|
||||||
|
`jj absorb {{[-f|--from]}} {{revset}} {{[-t|--into]}} {{revsets}}`
|
||||||
|
|
||||||
|
- Move only changes in given files from a revision to other revisions:
|
||||||
|
|
||||||
|
`jj absorb {{[-f|--from]}} {{revset}} {{[-t|--into]}} {{revsets}} {{filesets}}`
|
16
pages/common/jj-evolog.md
Normal file
16
pages/common/jj-evolog.md
Normal file
|
@ -0,0 +1,16 @@
|
||||||
|
# jj evolog
|
||||||
|
|
||||||
|
> Show how a change has evolved over time, listing the previous commits it has pointed to.
|
||||||
|
> More information: <https://jj-vcs.github.io/jj/latest/cli-reference/#jj-evolog>.
|
||||||
|
|
||||||
|
- Show how a revision has evolved over time:
|
||||||
|
|
||||||
|
`jj evolog {{[-r|--revision]}} {{revset}}`
|
||||||
|
|
||||||
|
- Show diff statistics in the evolution log:
|
||||||
|
|
||||||
|
`jj evolog {{[-r|--revision]}} {{revset}} --stat`
|
||||||
|
|
||||||
|
- Show summary of each change in the evolution log:
|
||||||
|
|
||||||
|
`jj evolog {{[-r|--revision]}} {{revset}} {{[-s|--summary]}}`
|
16
pages/common/jj-restore.md
Normal file
16
pages/common/jj-restore.md
Normal file
|
@ -0,0 +1,16 @@
|
||||||
|
# jj restore
|
||||||
|
|
||||||
|
> Restore files from another revision.
|
||||||
|
> More information: <https://jj-vcs.github.io/jj/latest/cli-reference/#jj-restore>.
|
||||||
|
|
||||||
|
- Restore files from a revision into another revision:
|
||||||
|
|
||||||
|
`jj restore {{[-f|--from]}} {{revset}} {{[-t|--into]}} {{revset}} {{filesets}}`
|
||||||
|
|
||||||
|
- Undo the changes in a revision as compared to the merge of its parents:
|
||||||
|
|
||||||
|
`jj restore {{[-c|--changes-in]}} {{revset}} {{filesets}}`
|
||||||
|
|
||||||
|
- Interactively choose what parts to restore:
|
||||||
|
|
||||||
|
`jj restore {{[-f|--from]}} {{revset}} {{[-t|--into]}} {{revset}} {{[-i|--interactive]}}`
|
Loading…
Add table
Reference in a new issue