Generate the rebase todo file output cleanly