diff options
| author | Linus Arver <linusa@google.com> | 2024-03-15 06:55:01 +0000 |
|---|---|---|
| committer | Junio C Hamano <gitster@pobox.com> | 2024-03-15 10:10:24 -0700 |
| commit | 65b4ad82b81e1a1f4afbb7f4974384d7db479c0a (patch) | |
| tree | b3ba05a4e5ba866e4458f31e5ca81f82abbe8530 /commit.c | |
| parent | The seventh batch (diff) | |
| download | git-65b4ad82b81e1a1f4afbb7f4974384d7db479c0a.tar.gz git-65b4ad82b81e1a1f4afbb7f4974384d7db479c0a.zip | |
format_trailer_info(): use trailer_item objects
This is another preparatory refactor to unify the trailer formatters.
Make format_trailer_info() operate on trailer_item objects, not the raw
string array.
We will continue to make improvements, culminating in the renaming of
format_trailer_info() to format_trailers(), at which point the
unification of these formatters will be complete.
In order to avoid breaking t4205 and t6300, flip *_success to *_failure
in the affected test cases. Add a temporary
"test_trailer_option_expect_failure" wrapper which we will use along
with "test_expect_failure" in the next commit to avoid breaking tests.
When the dust settles with the refactors a few more commits later, we
will drop the use of *_failure to make the tests truly pass again.
When the preparatory refactors are complete,
we'll be able to drop the use of *_failure that we introduce here.
Signed-off-by: Linus Arver <linusa@google.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'commit.c')
0 files changed, 0 insertions, 0 deletions
