diff options
author | Hariom Verma <hariom18599@gmail.com> | 2021-02-13 01:52:41 +0000 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2021-02-15 16:48:38 -0800 |
commit | 90563aedcab92b75d4b5f6d7aa43d6a98aaccde6 (patch) | |
tree | 44bc77ca31f02efa138df9cee5505962c593938a /trace2 | |
parent | t6300: use function to test trailer options (diff) | |
download | tgif-90563aedcab92b75d4b5f6d7aa43d6a98aaccde6.tar.xz |
pretty.c: refactor trailer logic to `format_set_trailers_options()`
Refactored trailers formatting logic inside pretty.c to a new function
`format_set_trailers_options()`. This new function returns the non-zero
in case of unusual. The caller handles the non-zero by "goto trailers_out".
This change will allow us to reuse the same logic in other places.
Mentored-by: Christian Couder <chriscool@tuxfamily.org>
Mentored-by: Heba Waly <heba.waly@gmail.com>
Signed-off-by: Hariom Verma <hariom18599@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'trace2')
0 files changed, 0 insertions, 0 deletions