verify-commit: scriptable commit signature verification
commitd07b00b7f31d0cb6675b4bdba269ce7f087ddd24
authorMichael J Gruber <git@drmicha.warpmail.net>
Mon, 23 Jun 2014 07:05:49 +0000 (23 09:05 +0200)
committerJunio C Hamano <gitster@pobox.com>
Mon, 23 Jun 2014 22:50:31 +0000 (23 15:50 -0700)
treee8fbdb8dd72a6eabfd67a7b2026f5722485fe11b
parent71c214c840782a67801fc8dbf5fe8a4f4fc62d01
verify-commit: scriptable commit signature verification

Commit signatures can be verified using "git show -s --show-signature"
or the "%G?" pretty format and parsing the output, which is well suited
for user inspection, but not for scripting.

Provide a command "verify-commit" which is analogous to "verify-tag": It
returns 0 for good signatures and non-zero otherwise, has the gpg output
on stderr and (optionally) the commit object on stdout, sans the
signature, just like "verify-tag" does.

Signed-off-by: Michael J Gruber <git@drmicha.warpmail.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Documentation/git-verify-commit.txt [new file with mode: 0644]
Makefile
builtin.h
builtin/verify-commit.c [new file with mode: 0644]
command-list.txt
git.c