]> git.ipfire.org Git - thirdparty/git.git/commit - trailer.c
trailer: streamline trailer item create and add
authorJonathan Tan <jonathantanmy@google.com>
Thu, 20 Oct 2016 21:39:48 +0000 (14:39 -0700)
committerJunio C Hamano <gitster@pobox.com>
Thu, 20 Oct 2016 22:09:50 +0000 (15:09 -0700)
commit63ab3f348458212c3e5d493465acd615303fb45a
tree74dee189d4a4e808162387cbc83cb035dce09350
parent8966a39483fb2e823055b1c7f1a2ff9394d727e4
trailer: streamline trailer item create and add

Currently, creation and addition (to a list) of trailer items are spread
across multiple functions. Streamline this by only having 2 functions:
one to parse the user-supplied string, and one to add the parsed
information to a list.

Signed-off-by: Jonathan Tan <jonathantanmy@google.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
trailer.c