diff options
| author | Linus Arver <linusa@google.com> | 2024-03-01 00:14:45 +0000 |
|---|---|---|
| committer | Junio C Hamano <gitster@pobox.com> | 2024-03-01 10:35:42 -0800 |
| commit | 2c948a78fd449a03c114802772acd4abfec25bba (patch) | |
| tree | 715489292c6bbba25756c9cb40c51ac6d5a04c00 /commit.h | |
| parent | format_trailers(): use strbuf instead of FILE (diff) | |
| download | git-2c948a78fd449a03c114802772acd4abfec25bba.tar.gz git-2c948a78fd449a03c114802772acd4abfec25bba.zip | |
format_trailer_info(): move "fast path" to caller
This is another preparatory refactor to unify the trailer formatters.
This allows us to drop the "msg" parameter from format_trailer_info(),
so that it take 3 parameters, similar to format_trailers() which also
takes 3 parameters:
void format_trailers(const struct process_trailer_options *opts,
struct list_head *trailers,
struct strbuf *out)
The short-term goal is to make format_trailer_info() be smart enough to
deprecate format_trailers(). And then ultimately we will rename
format_trailer_info() to format_trailers().
Signed-off-by: Linus Arver <linusa@google.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'commit.h')
0 files changed, 0 insertions, 0 deletions
