From: Junio C Hamano Date: Thu, 12 Apr 2007 10:04:05 +0000 (-0700) Subject: Fix git {log,show,...} --pretty=email X-Git-Tag: v1.5.2-rc0~58 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=2bfe3cec92be4f5e3bfc0e71ed560df4a726c07b;p=git.git Fix git {log,show,...} --pretty=email An earlier --subject-prefix patch forgot that format-patch is not the only codepath that adds the "[PATCH]" prefix, and broke everybody else in the log family. Signed-off-by: Junio C Hamano --- diff --git a/builtin-log.c b/builtin-log.c index 4a4890aca..ffc269a12 100644 --- a/builtin-log.c +++ b/builtin-log.c @@ -435,7 +435,6 @@ int cmd_format_patch(int argc, const char **argv, const char *prefix) rev.ignore_merges = 1; rev.diffopt.msg_sep = ""; rev.diffopt.recursive = 1; - rev.subject_prefix = "PATCH"; rev.extra_headers = extra_headers; diff --git a/revision.c b/revision.c index 486393cb0..37f1eab9e 100644 --- a/revision.c +++ b/revision.c @@ -567,6 +567,7 @@ void init_revisions(struct rev_info *revs, const char *prefix) revs->min_age = -1; revs->skip_count = -1; revs->max_count = -1; + revs->subject_prefix = "PATCH"; revs->prune_fn = NULL; revs->prune_data = NULL;