X-Git-Url: https://gitweb.ps.run/ps-cgit/blobdiff_plain/4e00d338b07245829adf2446a05fe4925b691092..ed3497b0de6634350cd17b320538fba918d4084c:/ui-patch.c diff --git a/ui-patch.c b/ui-patch.c index 1dbb39d..3086608 100644 --- a/ui-patch.c +++ b/ui-patch.c @@ -1,6 +1,6 @@ /* ui-patch.c: generate patch view * - * Copyright (C) 2007 Lars Hjemli + * Copyright (C) 2006-2014 cgit Development Team * * Licensed under GNU General Public License v2 * (see COPYING for full license text) @@ -72,6 +72,7 @@ void cgit_print_patch(const char *new_rev, const char *old_rev, rev.verbose_header = 1; rev.diff = 1; rev.show_root_diff = 1; + rev.max_parents = 1; rev.diffopt.output_format |= DIFF_FORMAT_PATCH; setup_revisions(ARRAY_SIZE(rev_argv), (const char **)rev_argv, &rev, NULL); @@ -79,6 +80,6 @@ void cgit_print_patch(const char *new_rev, const char *old_rev, while ((commit = get_revision(&rev)) != NULL) { log_tree_commit(&rev, commit); - printf("--\ncgit %s\n", cgit_version); + printf("-- \ncgit %s\n\n", cgit_version); } }