summaryrefslogtreecommitdiff
path: root/revision.c
diff options
context:
space:
mode:
authorJunio C Hamano <junkio@cox.net>2007-04-12 03:04:05 -0700
committerJunio C Hamano <junkio@cox.net>2007-04-12 17:43:28 -0700
commit2bfe3cec92be4f5e3bfc0e71ed560df4a726c07b (patch)
tree47fa0f930ef45c5fb2a0354d4d2b4b9d51af3028 /revision.c
parent9aef12673e966fcbefea7716239e159c03b8d94e (diff)
downloadgit-2bfe3cec92be4f5e3bfc0e71ed560df4a726c07b.tar.gz
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>
Diffstat (limited to 'revision.c')
-rw-r--r--revision.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/revision.c b/revision.c
index 486393cb08..37f1eab9e5 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;