]> git.ipfire.org Git - thirdparty/git.git/commit - log-tree.c
format-patch: track several references
authorThomas Rast <trast@student.ethz.ch>
Thu, 19 Feb 2009 21:26:31 +0000 (22:26 +0100)
committerJunio C Hamano <gitster@pobox.com>
Sun, 22 Feb 2009 04:26:03 +0000 (20:26 -0800)
commitb079c50e03a812f5c8197b8f38e0a5fe6dd31321
treebe6aa158cc92221b3db7df40aa792dfb904bdaca
parent484cf6c3f1169786c45ccda54c9961ef66465c03
format-patch: track several references

Currently, format-patch can only track a single reference (the
In-Reply-To:) for each mail.  To ensure proper threading, we should
list all known references for every mail.

Change the rev_info.ref_message_id field to a string_list, so that we
can append references at will, and change the output formatting
routines to print all of them in the References: header.  The last
entry in the list is implicitly assumed to be the In-Reply-To:, which
gives output consistent with RFC 2822:

   The "References:" field will contain the contents of the parent's
   "References:" field (if any) followed by the contents of the
   parent's "Message-ID:" field (if any).

Note that this is just preparatory work; nothing uses it yet, so all
"References:" fields in the output are still only one deep.

Signed-off-by: Thomas Rast <trast@student.ethz.ch>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin-log.c
log-tree.c
revision.h