Refactor pretty_print_commit arguments into a struct