Skip to content

Tortilla cannot create/delete a step while rebasing #48

@darkbasic

Description

@darkbasic

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

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions