Moved print_commit() into a new print.c file.