summaryrefslogtreecommitdiff
path: root/SECURITY.md
diff options
context:
space:
mode:
authorLibravatar Ævar Arnfjörð Bjarmason <avarab@gmail.com>2021-10-01 12:27:35 +0200
committerLibravatar Junio C Hamano <gitster@pobox.com>2021-10-01 14:22:51 -0700
commit0000e81811bcbdc44339d03ae772650b98c26ed9 (patch)
treeb002d4347338784fddb31b5c35ed1699343e7dab /SECURITY.md
parentbuiltin/remote.c: add and use a REF_STATES_INIT (diff)
downloadtgif-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 'SECURITY.md')
0 files changed, 0 insertions, 0 deletions