summaryrefslogtreecommitdiff
path: root/commit.c
diff options
context:
space:
mode:
authorJohannes Schindelin <Johannes.Schindelin@gmx.de>2006-05-05 02:30:52 (GMT)
committerJunio C Hamano <junkio@cox.net>2006-05-05 21:11:57 (GMT)
commit596524b33d50e47e2375cec9e00aff59f0e8278b (patch)
treee215eb4bddd8aea4b91661d0580eeaffa873abee /commit.c
parent2448482b3d5e265dd29fa38c3827565f6f2f31ec (diff)
downloadgit-596524b33d50e47e2375cec9e00aff59f0e8278b.zip
git-596524b33d50e47e2375cec9e00aff59f0e8278b.tar.gz
git-596524b33d50e47e2375cec9e00aff59f0e8278b.tar.bz2
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.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/commit.c b/commit.c
index 42b44bb..93b3903 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;