Skip to content

Commit 2bfe3ce

Browse files
author
Junio C Hamano
committed
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>
1 parent 9aef126 commit 2bfe3ce

File tree

2 files changed

+1
-1
lines changed

2 files changed

+1
-1
lines changed

builtin-log.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -435,7 +435,6 @@ int cmd_format_patch(int argc, const char **argv, const char *prefix)
435435
rev.ignore_merges = 1;
436436
rev.diffopt.msg_sep = "";
437437
rev.diffopt.recursive = 1;
438-
rev.subject_prefix = "PATCH";
439438

440439
rev.extra_headers = extra_headers;
441440

revision.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -567,6 +567,7 @@ void init_revisions(struct rev_info *revs, const char *prefix)
567567
revs->min_age = -1;
568568
revs->skip_count = -1;
569569
revs->max_count = -1;
570+
revs->subject_prefix = "PATCH";
570571

571572
revs->prune_fn = NULL;
572573
revs->prune_data = NULL;

0 commit comments

Comments
 (0)