aboutsummaryrefslogtreecommitdiff
path: root/log-tree.c
diff options
context:
space:
mode:
authorJosh Triplett <josht@us.ibm.com>2006-07-14 17:48:51 -0700
committerJunio C Hamano <junkio@cox.net>2006-07-14 20:41:36 -0700
commitd1566f7883f727f38bf442af3fdb69d36e6fcea2 (patch)
tree4ecb66358d83203fc1d811c4c2a5de9d1891fb7d /log-tree.c
parenta3e65d74ee7ec9e6f49de7688a1cdac052910bd4 (diff)
downloadgit-d1566f7883f727f38bf442af3fdb69d36e6fcea2.tar.gz
git-d1566f7883f727f38bf442af3fdb69d36e6fcea2.tar.xz
git-format-patch: Make the second and subsequent mails replies to the first
Add message_id and ref_message_id fields to struct rev_info, used in show_log with CMIT_FMT_EMAIL to set Message-Id and In-Reply-To/References respectively. Use these in git-format-patch to make the second and subsequent patch mails replies to the first patch mail. Signed-off-by: Josh Triplett <josh@freedesktop.org> Signed-off-by: Junio C Hamano <junkio@cox.net>
Diffstat (limited to 'log-tree.c')
-rw-r--r--log-tree.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/log-tree.c b/log-tree.c
index 9d8d46fa0..497198841 100644
--- a/log-tree.c
+++ b/log-tree.c
@@ -97,6 +97,11 @@ void show_log(struct rev_info *opt, const char *sep)
subject = "Subject: ";
printf("From %s Mon Sep 17 00:00:00 2001\n", sha1);
+ if (opt->message_id)
+ printf("Message-Id: <%s>\n", opt->message_id);
+ if (opt->ref_message_id)
+ printf("In-Reply-To: <%s>\nReferences: <%s>\n",
+ opt->ref_message_id, opt->ref_message_id);
if (opt->mime_boundary) {
static char subject_buffer[1024];
static char buffer[1024];