rebase -i: implement the main part of interactive rebase as a builtin