Skip to content

Commit 41ea0a9

Browse files
Linus Arvergitster
authored andcommitted
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 <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 65b4ad8 commit 41ea0a9

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

trailer.c

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1101,9 +1101,6 @@ static void format_trailer_info(const struct process_trailer_options *opts,
11011101
strbuf_addstr(&val, item->value);
11021102

11031103
if (!opts->filter || opts->filter(&tok, opts->filter_data)) {
1104-
if (opts->unfold)
1105-
unfold_value(&val);
1106-
11071104
if (opts->separator && out->len != origlen)
11081105
strbuf_addbuf(out, opts->separator);
11091106
if (!opts->value_only)

0 commit comments

Comments
 (0)