aboutsummaryrefslogtreecommitdiffstats
path: root/Documentation/git-verify-commit.txt
diff options
context:
space:
mode:
authorMichael J Gruber <git@drmicha.warpmail.net>2014-06-23 09:05:49 +0200
committerJunio C Hamano <gitster@pobox.com>2014-06-23 15:50:31 -0700
commitd07b00b7f31d0cb6675b4bdba269ce7f087ddd24 (patch)
treee8fbdb8dd72a6eabfd67a7b2026f5722485fe11b /Documentation/git-verify-commit.txt
parent71c214c840782a67801fc8dbf5fe8a4f4fc62d01 (diff)
downloadgit-d07b00b7f31d0cb6675b4bdba269ce7f087ddd24.tar.gz
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 'Documentation/git-verify-commit.txt')
-rw-r--r--Documentation/git-verify-commit.txt28
1 files changed, 28 insertions, 0 deletions
diff --git a/Documentation/git-verify-commit.txt b/Documentation/git-verify-commit.txt
new file mode 100644
index 0000000000..9413e2802a
--- /dev/null
+++ b/Documentation/git-verify-commit.txt
@@ -0,0 +1,28 @@
+git-verify-commit(1)
+====================
+
+NAME
+----
+git-verify-commit - Check the GPG signature of commits
+
+SYNOPSIS
+--------
+[verse]
+'git verify-commit' <commit>...
+
+DESCRIPTION
+-----------
+Validates the gpg signature created by 'git commit -S'.
+
+OPTIONS
+-------
+-v::
+--verbose::
+ Print the contents of the commit object before validating it.
+
+<commit>...::
+ SHA-1 identifiers of Git commit objects.
+
+GIT
+---
+Part of the linkgit:git[1] suite