1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-07-14 10:55:25 +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:
Agam Agarwal 2025-07-05 20:15:41 +05:30 committed by GitHub
parent 178e5d74f5
commit a8619a922f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 44 additions and 0 deletions

12
pages/common/jj-absorb.md Normal file
View 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
View 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]}}`

View 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]}}`