]> git.ipfire.org Git - thirdparty/git.git/commit - gpg-interface.h
gpg-interface: move parse_gpg_output() to where it should be
authorJunio C Hamano <gitster@pobox.com>
Thu, 14 Aug 2014 22:31:13 +0000 (15:31 -0700)
committerJunio C Hamano <gitster@pobox.com>
Mon, 15 Sep 2014 20:23:20 +0000 (13:23 -0700)
commita50e7ca3215492b16d96221cf762dbe71ed99722
tree4d9e15c3f2c9622121225361d19f773c0149c826
parentc67072b90bdc56501483e0ba96d0d833e86362c3
gpg-interface: move parse_gpg_output() to where it should be

Earlier, ffb6d7d5 (Move commit GPG signature verification to
commit.c, 2013-03-31) moved this helper that used to be in pretty.c
(i.e. the output code path) to commit.c for better reusability.

It was a good first step in the right direction, but still suffers
from a myopic view that commits will be the only thing we would ever
want to sign---we would actually want to be able to reuse it even
wider.

The function interprets what GPG said; gpg-interface is obviously a
better place.  Move it there.

Signed-off-by: Junio C Hamano <gitster@pobox.com>
commit.c
gpg-interface.c
gpg-interface.h