Implement an interactive rebase dialog. This does not seem possible with pygit2 at the moment.
See https://github.com/libgit2/libgit2/issues/6332