]> git.ipfire.org Git - thirdparty/git.git/commit
format_trailer_info(): drop redundant unfold_value()
authorLinus Arver <linusa@google.com>
Fri, 15 Mar 2024 06:55:02 +0000 (06:55 +0000)
committerJunio C Hamano <gitster@pobox.com>
Fri, 15 Mar 2024 17:10:24 +0000 (10:10 -0700)
commit41ea0a900221897c5ba36afb9f0b31bf543cea7e
tree678ec2aa50784d86b0330b23218249bb108567c0
parent65b4ad82b81e1a1f4afbb7f4974384d7db479c0a
format_trailer_info(): drop redundant unfold_value()

This is another preparatory refactor to unify the trailer formatters.

In the last patch we made format_trailer_info() use trailer_item objects
instead of the "trailers" string array. This means that the call to
unfold_value() here is redundant because the trailer_item objects are
already unfolded in parse_trailers() which is a dependency of our
caller, format_trailers_from_commit().

Remove the redundant call.

Signed-off-by: Linus Arver <linusa@google.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
trailer.c