-
Notifications
You must be signed in to change notification settings - Fork 353
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add a --siblings option to the jj split command #3037
Conversation
e265980
to
07fd3c8
Compare
07fd3c8
to
71b65e5
Compare
985c1f0
to
4c5db0a
Compare
320efd6
to
5049074
Compare
If the --siblings option is used, the target commit is split into two sibling commits instead of parent and child commits. Any children of the original commit will have both siblings as their new parents. #2274
I made a couple of minor tweaks, including adding the commit summary back to the instructions since I don't think I meant to delete it. I also fixed a couple of new conflicts with main. After this is submitted I'm going to mail another PR that adds test coverage for splitting a commit with branches. Currently the branches move to the second commit, but I know we're discussing whether the branches should stay with the original commit instead. I'll probably open a new issue to move that discussion to and then close the FR for |
5049074
to
fe267f9
Compare
If the --siblings option is used, the target commit is split into two sibling commits instead of parent and child commits. Any children of the original commit will have both siblings as their new parents.
#2274