[PATCH 3/4] log and rev-list: Fix --graph output with --pretty=email
- From
Adam Simpkins <adam@adamsimpkins.net>
- Date
- Apr 7, 2008, 08:01 UTC
- Message-ID
- <1207555281-9362-3-git-send-email-adam@adamsimpkins.net>
- In-Reply-To
- <1207555281-9362-2-git-send-email-adam@adamsimpkins.net>
As pointed out by Teemu Likonen, the initial line of pretty_print_commit() output wasn't correctly prefixed by the graph information.
Signed-off-by: Adam Simpkins <adam@adamsimpkins.net> --- log-tree.c | 9 +++++++-- 1 files changed, 7 insertions(+), 2 deletions(-)
diff --git a/log-tree.c b/log-tree.c index 0d7e521..d2cb26a 100644 --- a/log-tree.c +++ b/log-tree.c @@ -166,11 +166,16 @@ void log_write_email_headers(struct rev_info *opt, const char *name, } printf("From %s Mon Sep 17 00:00:00 2001\n", name); - if (opt->message_id) + graph_show_oneline(opt->graph); + if (opt->message_id) { printf("Message-Id: <%s>\n", opt->message_id); - if (opt->ref_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); + graph_show_oneline(opt->graph); + } if (opt->mime_boundary) { static char subject_buffer[1024]; static char buffer[1024];
-- 1.5.3.6