]> git.ipfire.org Git - thirdparty/git.git/commit
trailer: add interface for iterating over commit trailers
authorJeff King <peff@peff.net>
Sun, 27 Sep 2020 08:40:01 +0000 (04:40 -0400)
committerJunio C Hamano <gitster@pobox.com>
Sun, 27 Sep 2020 19:21:05 +0000 (12:21 -0700)
commitf0939a0eb157cb23cd300d32ee0bff2f82aa5959
treec39246541265cdd0d74f434bc0f6c05eaeb828cd
parent92338c450bc41e8e3da31a10d2ab73844e8b0634
trailer: add interface for iterating over commit trailers

The trailer code knows how to parse out the trailers and re-format them,
but there's no easy way to iterate over the trailers (you can use
trailer_info, but you have to then do a bunch of extra parsing).

Let's add an iteration interface that makes this easy to do.

Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
trailer.c
trailer.h