-
Notifications
You must be signed in to change notification settings - Fork 5
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
Tortilla cannot create/delete a step while rebasing #48
Comments
It sounds good but the only issue is the API. @darkbasic do you have an idea for a good API for the feature? I guess that maybe the CLI should be super interactive and "ask" you what to do with each step. something similar to |
The issue is only when we have merge conflicts.
Now I will be able to remove step 9.1 or create a new step after it with a simple But let's say that I edit a file which will create a merge failure in step 9.2, as soon as I type
As you can see because of the merge conflict the HEAD is still at step 9.1 and not 9.2. |
This is related to issue 13. To emulate something like an interactive rebase we also need to be able to pop/push a step while rebasing.
Ideally I would like to be able to push/pop a step even after a rebase failure, but in this case the HEAD would point to the previous commit, so it could be hard to implement. In fact if we simply do a
git reset --hard HEAD; git rebase --continue
it will indeed delete the step, but not reword all subsequent steps.I'm not sure, but maybe this could be easily implemented once tortilla will be able to edit multiple steps by forcing tortilla to "stop" at the commits we want to pop/push.
Let's say we want to do the following:
we could do something like:
tortilla step edit 1.2 1.3 1.5 1.6
and then once at step 1.3 simply type:
tortilla step pop; git rebase --continue
and once at commit 1.5:
tortilla step push [...]; git rebase --continue
The text was updated successfully, but these errors were encountered: