rebase-interactive: rewrite edit_todo_list() to handle the initial edit