gitweb: Make git_print_log generic; git_print_simplified_log uses it