Can "jj split" create multiple changes? #5295
-
Dear all, using Is this already possible? If not, is there an open issue that I can follow to monitor the progress? I found none but might just be lacking the exact search terms... Kind Regards, |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
It is not currently supported. Feel free to file a feature request for it. How do you imagine it would work? Would you just repeatedly select the changes to go in the next commit? Or are you imagining a TUI (or GUI?) that lets you move changes back and forth between all the splits until you confirm? If it's implemented by repeated two-way splitting, what should happen if you do a few splits and then exit the diff editor with an error code? I think we would want to keep your first splits (and ask for descriptions for them) but leave the "broken" split as a single commit. |
Beta Was this translation helpful? Give feedback.
-
See also arxanas/scm-record#73 for implementing it in the TUI for the built-in diff editor. I have some UI ideas for multi-way splits, but there's also the question of what kind of interface we would use for traditional diff editors, which only have a concept of a single split (effectively). |
Beta Was this translation helpful? Give feedback.
It is not currently supported. Feel free to file a feature request for it. How do you imagine it would work? Would you just repeatedly select the changes to go in the next commit? Or are you imagining a TUI (or GUI?) that lets you move changes back and forth between all the splits until you confirm? If it's implemented by repeated two-way splitting, what should happen if you do a few splits and then exit the diff editor with an error code? I think we would want to keep your first splits (and ask for descriptions for them) but leave the "broken" split as a single commit.