]> git.ipfire.org Git - thirdparty/git.git/commit - gpg-interface.c
gpg-interface.c: use flags to determine key/signer info presence
authorMichał Górny <mgorny@gentoo.org>
Mon, 22 Oct 2018 16:38:19 +0000 (18:38 +0200)
committerJunio C Hamano <gitster@pobox.com>
Mon, 22 Oct 2018 22:58:54 +0000 (07:58 +0900)
commit0b11a84e1ba26fa3c9995f19e224848d8afc9bcf
tree40bc1855828836767386ec59203385bfb2be0c2d
parentda6cf1b3360eefdce3dbde7632eca57177327f37
gpg-interface.c: use flags to determine key/signer info presence

Replace the logic used to determine whether key and signer information
is present to use explicit flags in sigcheck_gpg_status[] array.  This
is more future-proof, since it makes it possible to add additional
statuses without having to explicitly update the conditions.

Signed-off-by: Michał Górny <mgorny@gentoo.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
gpg-interface.c