]> git.ipfire.org Git - thirdparty/git.git/commit - gpg-interface.c
gpg-interface: provide access to the payload
authorMichael J Gruber <git@drmicha.warpmail.net>
Mon, 23 Jun 2014 07:05:48 +0000 (09:05 +0200)
committerJunio C Hamano <gitster@pobox.com>
Mon, 23 Jun 2014 22:50:30 +0000 (15:50 -0700)
commit71c214c840782a67801fc8dbf5fe8a4f4fc62d01
tree22b7db0f0ddac955e11d4a6c8a43ce4e9517b36e
parent01e57b5d91b0c9f2ac93708c5c2cbcd4731ddd34
gpg-interface: provide access to the payload

In contrast to tag signatures, commit signatures are put into the
header, that is between the other header parts and commit messages.

Provide access to the commit content sans the signature, which is the
payload that is actually signed. Commit signature verification does the
parsing anyways, and callers may wish to act on or display the commit
object sans the signature.

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