aboutsummaryrefslogtreecommitdiff
path: root/commit.c
diff options
context:
space:
mode:
authorJohannes Schindelin <Johannes.Schindelin@gmx.de>2006-05-05 04:30:52 +0200
committerJunio C Hamano <junkio@cox.net>2006-05-05 14:11:57 -0700
commit596524b33d50e47e2375cec9e00aff59f0e8278b (patch)
treee215eb4bddd8aea4b91661d0580eeaffa873abee /commit.c
parent2448482b3d5e265dd29fa38c3827565f6f2f31ec (diff)
downloadgit-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.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/commit.c b/commit.c
index 42b44bba5..93b3903ea 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;