diff options
author | Johannes Schindelin <Johannes.Schindelin@gmx.de> | 2006-05-05 04:30:52 +0200 |
---|---|---|
committer | Junio C Hamano <junkio@cox.net> | 2006-05-05 14:11:57 -0700 |
commit | 596524b33d50e47e2375cec9e00aff59f0e8278b (patch) | |
tree | e215eb4bddd8aea4b91661d0580eeaffa873abee /commit.c | |
parent | 2448482b3d5e265dd29fa38c3827565f6f2f31ec (diff) | |
download | git-596524b33d50e47e2375cec9e00aff59f0e8278b.tar.gz git-596524b33d50e47e2375cec9e00aff59f0e8278b.tar.xz |
Teach fmt-patch about --numbered
Signed-off-by: Johannes Schindelin <Johannes.Schindelin@gmx.de>
Signed-off-by: Junio C Hamano <junkio@cox.net>
Diffstat (limited to 'commit.c')
-rw-r--r-- | commit.c | 5 |
1 files changed, 1 insertions, 4 deletions
@@ -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; |