Abstract out the "name <email> date" handling of commit-tree.c