X-Git-Url: https://gitweb.ps.run/ps-cgit/blobdiff_plain/735c7f0734aa0df49a7a899979f1eeef8dede863..9999b0a3e915c76a52be433830660e803ef71cb0:/ui-patch.c diff --git a/ui-patch.c b/ui-patch.c index 4d35167..6878a46 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) @@ -59,7 +59,7 @@ void cgit_print_patch(const char *new_rev, const char *old_rev, patchname = fmt("%s.patch", rev_range); ctx.page.mimetype = "text/plain"; ctx.page.filename = patchname; - cgit_print_http_headers(&ctx); + cgit_print_http_headers(); if (ctx.cfg.noplainemail) { rev_argv[2] = "--format=format:From %H Mon Sep 17 00:00:00 " @@ -80,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); } }