1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-07-28 02:15:27 +02:00
tldr/pages/common/jj-absorb.md
2025-07-09 16:10:21 +03:00

647 B

jj absorb

Split changes in the source revision and move each change to the closest mutable ancestor where the corresponding lines were modified last. Changes that have zero or multiple matching regions in ancestral revisions won't be moved. More information: https://jj-vcs.github.io/jj/latest/cli-reference/#jj-absorb.

  • Move all eligible and unambiguous 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}}