Refactor rebase commit list: Don't fill list again and again when reordering commits