pretty: parse the gpg status lines rather than the output
commit4a868fd655a72c2663d9519363162db467baccb2
authorMichael J Gruber <git@drmicha.warpmail.net>
Thu, 14 Feb 2013 16:04:45 +0000 (14 17:04 +0100)
committerJunio C Hamano <gitster@pobox.com>
Thu, 14 Feb 2013 17:30:22 +0000 (14 09:30 -0800)
treeaf5a50b40cec2b769dcb88f3c19450e85fbe9552
parent9cc4ac8ff1ae84f9435f2c7de3f7ab796103adba
pretty: parse the gpg status lines rather than the output

Currently, parse_signature_lines() parses the gpg output for strings
which depend on LANG so it fails to recognize good commit signatures
(and thus does not fill in %G? and the like) in most locales.

Make it parse the status lines from gpg instead, which are the proper
machine interface. This fixes the problem described above.

There is a change in behavior for "%GS" which we intentionally do not
work around: "%GS" used to put quotes around the signer's uid (or
rather: it inherited from the gpg user output). We output the uid
without quotes now, just like author and committer names.

Signed-off-by: Michael J Gruber <git@drmicha.warpmail.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
pretty.c