You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The first commit contains the split out changes.
The second commit usually keeps most of the changes, the change id and
the attached bookmarks (as long as split.legacy-bookmark-behavior is
true, which should stay the default value).
This no-implicit-move behavior aligns with other jj commands.
With the -A/-B/-d options, the split-out commit may be moved anywhere.
With commit tree
@ pmpklomk (empty) (no description set)
○ pzskstlk *letters* fileB
○ kmvzrqtu fileA
│ ○ lyzvpymy *numbers* file3&C
│ ○ kpmxxkwk file2
│ ○ xzvtlrrt file1
├─╯
◆ zzzzzzzz root()
when splitting `fileC` out of `lyzvpymy` to the other branch with
jj split -r lyzvpymy -d pzskstlk
the change id and the bookmark stay in the branch with the source commit.
@ pmpklomk (empty) (no description set)
○ vowztxqo fileC
○ pzskstlk *letters* fileB
○ kmvzrqtu fileA
│ ○ lyzvpymy *numbers* file3
│ ○ kpmxxkwk file2
│ ○ xzvtlrrt file1
├─╯
◆ zzzzzzzz root()
Copy file name to clipboardExpand all lines: cli/tests/[email protected]
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -2442,7 +2442,7 @@ For example, if all you need is the `README.md` and the `lib/` directory, use `j
2442
2442
2443
2443
Split a revision in two
2444
2444
2445
-
Starts a [diff editor] on the changes in the revision. Edit the right side of the diff until it has the content you want in the new revision. Once you close the editor, your edited content will replace the previous revision. The remaining changes will be put in a new revision on top.
2445
+
Starts a [diff editor] on the changes in the revision. Edit the right side of the diff until it has the content you want in the new revision. Once you close the editor, your edited content will be put in a new revision before the original revision, while the remaining changes will replace the original revision.
0 commit comments