Replies: 1 comment 2 replies
-
#6141 will make the single-step case simpler. For the general case, I can't think of a better way than somehow finding the conflict-free state you at the end of the stack of commits before the reordering. You can find that using |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
If I reorder commits using rebase and get a conflict, I tend to need to resolve the conflict twice. Once for the moved commit and once again for the children. I would like a way to have the same file system state after reordering commits, so I don't need the second conflict resolution.
For example, after running
jj rebase -r C -B B
and resolving the conflicts inC'
, I want to restore so that the file system state afterB'
is the same as afterC
. What would be the best way to do this?Preferably I would like something at least semi-automatable, as if there are several commits with conflicts against the commit I move backwards, I would have to move the commit one commit at a time in order to localize the conflicts and resolutions. If there is a way to avoid manually moving the commit one step at a time, while still localizing/automatically resolving descendant conflicts by restoring files, I would also appreciate this.
Beta Was this translation helpful? Give feedback.
All reactions