summaryrefslogtreecommitdiff
path: root/log-tree.c
diff options
context:
space:
mode:
authorLibravatar Junio C Hamano <gitster@pobox.com>2009-03-11 13:48:07 -0700
committerLibravatar Junio C Hamano <gitster@pobox.com>2009-03-11 13:48:07 -0700
commit5a5bd23486c5d8721f4654eadec75213d3dc074f (patch)
tree51a0d4bf4b3277c010fe623f55e32c5824994eef /log-tree.c
parentMerge branch 'el/blame-date' (diff)
parentformat-patch: support deep threading (diff)
downloadtgif-5a5bd23486c5d8721f4654eadec75213d3dc074f.tar.xz
Merge branch 'tr/format-patch-thread'
* tr/format-patch-thread: format-patch: support deep threading format-patch: thread as reply to cover letter even with in-reply-to format-patch: track several references format-patch: threading test reactivation Conflicts: builtin-log.c
Diffstat (limited to 'log-tree.c')
-rw-r--r--log-tree.c11
1 files changed, 8 insertions, 3 deletions
diff --git a/log-tree.c b/log-tree.c
index 63cff74350..9565c184db 100644
--- a/log-tree.c
+++ b/log-tree.c
@@ -6,6 +6,7 @@
#include "log-tree.h"
#include "reflog-walk.h"
#include "refs.h"
+#include "string-list.h"
struct decoration name_decoration = { "object names" };
@@ -211,9 +212,13 @@ void log_write_email_headers(struct rev_info *opt, const char *name,
printf("Message-Id: <%s>\n", opt->message_id);
graph_show_oneline(opt->graph);
}
- if (opt->ref_message_id) {
- printf("In-Reply-To: <%s>\nReferences: <%s>\n",
- opt->ref_message_id, opt->ref_message_id);
+ if (opt->ref_message_ids && opt->ref_message_ids->nr > 0) {
+ int i, n;
+ n = opt->ref_message_ids->nr;
+ printf("In-Reply-To: <%s>\n", opt->ref_message_ids->items[n-1].string);
+ for (i = 0; i < n; i++)
+ printf("%s<%s>\n", (i > 0 ? "\t" : "References: "),
+ opt->ref_message_ids->items[i].string);
graph_show_oneline(opt->graph);
}
if (opt->mime_boundary) {