pretty_print_commit(): pass commit object instead of commit->buffer.