]> git.ipfire.org Git - thirdparty/git.git/commit - trailer.c
trailer: process trailers from input message and arguments
authorChristian Couder <chriscool@tuxfamily.org>
Mon, 13 Oct 2014 18:16:24 +0000 (20:16 +0200)
committerJunio C Hamano <gitster@pobox.com>
Mon, 13 Oct 2014 20:55:26 +0000 (13:55 -0700)
commit4103818d20a4aa8f2473bff3cc8e2f9048d9c310
tree6aa84cd43283121eebaaaa853d9706789cca8fa5
parent9385b5d7065351104c7bfd3d1e53a28207b8b7ed
trailer: process trailers from input message and arguments

Implement the logic to process trailers from the input message
and from arguments.

At the beginning trailers from the input message are in their
own "in_tok" doubly linked list, and trailers from arguments
are in their own "arg_tok" doubly linked list.

The lists are traversed and when an "arg_tok" should be "applied",
it is removed from its list and inserted into the "in_tok" list.

Signed-off-by: Christian Couder <chriscool@tuxfamily.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
trailer.c