diff options
author | Ævar Arnfjörð Bjarmason <avarab@gmail.com> | 2021-10-01 12:27:35 +0200 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2021-10-01 14:22:51 -0700 |
commit | 0000e81811bcbdc44339d03ae772650b98c26ed9 (patch) | |
tree | b002d4347338784fddb31b5c35ed1699343e7dab /t/t4006-diff-mode.sh | |
parent | builtin/remote.c: add and use a REF_STATES_INIT (diff) | |
download | tgif-0000e81811bcbdc44339d03ae772650b98c26ed9.tar.xz |
builtin/remote.c: add and use SHOW_INFO_INIT
In the preceding commit we introduced REF_STATES_INIT, but did not
change the "struct show_info" to have a corresponding
initializer. Let's do that, and make it use "REF_STATES_INIT" and
"STRING_LIST_INIT_DUP", doing that requires changing "list" and
"states" away from being pointers.
The resulting end-state is simpler since we omit the local "info_list"
and "states" variables in show() as well as the memset().
Signed-off-by: Ævar Arnfjörð Bjarmason <avarab@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t4006-diff-mode.sh')
0 files changed, 0 insertions, 0 deletions