Clean up commit insertion in git-rev-list