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 <junkio@cox.net>
Junio C Hamano committed
Apr 12, 2007 at 03:04 UTC
2bfe3cec92be4f5e3bfc0e71ed560df4a726c07b
2 files changed
+1
-1
builtin-log.c
-1
@@ -435,7 +435,6 @@ int cmd_format_patch(int argc, const char **argv, const char *prefix)
435
rev.ignore_merges = 1;
436
rev.diffopt.msg_sep = "";
437
rev.diffopt.recursive = 1;
438
- rev.subject_prefix = "PATCH";
438
439
rev.extra_headers = extra_headers;
440
revision.c
+1
@@ -567,6 +567,7 @@ void init_revisions(struct rev_info *revs, const char *prefix)
567
revs->min_age = -1;
568
revs->skip_count = -1;
569
revs->max_count = -1;
570
+ revs->subject_prefix = "PATCH";
571
572
revs->prune_fn = NULL;
573
revs->prune_data = NULL;