summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorMichael J Gruber <git@drmicha.warpmail.net>2014-06-23 07:05:49 (GMT)
committerJunio C Hamano <gitster@pobox.com>2014-06-23 22:50:31 (GMT)
commitd07b00b7f31d0cb6675b4bdba269ce7f087ddd24 (patch)
treee8fbdb8dd72a6eabfd67a7b2026f5722485fe11b /Makefile
parent71c214c840782a67801fc8dbf5fe8a4f4fc62d01 (diff)
downloadgit-d07b00b7f31d0cb6675b4bdba269ce7f087ddd24.zip
git-d07b00b7f31d0cb6675b4bdba269ce7f087ddd24.tar.gz
git-d07b00b7f31d0cb6675b4bdba269ce7f087ddd24.tar.bz2
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>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile1
1 files changed, 1 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 07ea105..b92418d 100644
--- a/Makefile
+++ b/Makefile
@@ -999,6 +999,7 @@ BUILTIN_OBJS += builtin/update-ref.o
BUILTIN_OBJS += builtin/update-server-info.o
BUILTIN_OBJS += builtin/upload-archive.o
BUILTIN_OBJS += builtin/var.o
+BUILTIN_OBJS += builtin/verify-commit.o
BUILTIN_OBJS += builtin/verify-pack.o
BUILTIN_OBJS += builtin/verify-tag.o
BUILTIN_OBJS += builtin/write-tree.o