X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=commit.c;h=93b3903ea78fac0b5a40074ec64d0c98bb8cfa94;hb=596524b33d50e47e2375cec9e00aff59f0e8278b;hp=42b44bba52b3bcf8545f7e7753d5ebb755155163;hpb=2a3870432395e78c82a870bf1a177b8d5b8fbdf0;p=git.git diff --git a/commit.c b/commit.c index 42b44bba..93b3903e 100644 --- a/commit.c +++ b/commit.c @@ -489,17 +489,14 @@ static int add_merge_info(enum cmit_fmt fmt, char *buf, const struct commit *com return offset; } -unsigned long pretty_print_commit(enum cmit_fmt fmt, const struct commit *commit, unsigned long len, char *buf, unsigned long space, int abbrev) +unsigned long pretty_print_commit(enum cmit_fmt fmt, const struct commit *commit, unsigned long len, char *buf, unsigned long space, int abbrev, const char *subject) { int hdr = 1, body = 0; unsigned long offset = 0; int indent = 4; int parents_shown = 0; const char *msg = commit->buffer; - const char *subject = NULL; - if (fmt == CMIT_FMT_EMAIL) - subject = "Subject: [PATCH] "; if (fmt == CMIT_FMT_ONELINE || fmt == CMIT_FMT_EMAIL) indent = 0;