-
Notifications
You must be signed in to change notification settings - Fork 5
Description
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:
edit step_1.2
drop step_1.3
pick step_1.4
edit step_1.5
push new_step
edit step_1.6
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