pretty: move trailer formatting to trailer.c
commita388b10fc17c435df32c3875225a1468edad9535
authorJeff King <peff@peff.net>
Tue, 15 Aug 2017 10:23:56 +0000 (15 06:23 -0400)
committerJunio C Hamano <gitster@pobox.com>
Tue, 15 Aug 2017 18:13:58 +0000 (15 11:13 -0700)
tree7c27599344e6d39edcafe1cd631ed63ea7c12b48
parent99e09dafd7b7bcac4d8189b41dc6038bf36334f5
pretty: move trailer formatting to trailer.c

The next commit will add many features to the %(trailer)
placeholder in pretty.c. We'll need to access some internal
functions of trailer.c for that, so our options are either:

  1. expose those functions publicly

or

  2. make an entry point into trailer.c to do the formatting

Doing (2) ends up exposing less surface area, though do note
that caveats in the docstring of the new function.

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