summaryrefslogtreecommitdiff
path: root/commit.h
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2011-10-18 15:53:23 -0700
committerJunio C Hamano <gitster@pobox.com>2011-11-12 22:27:38 -0800
commit0c37f1fce6cb7997dbb2703d35eef0dfd86c5070 (patch)
treefdef185d235865ca3caccf1f8f0d2a1a723c863f /commit.h
parentba3c69a9ee1894de397b60d3b548383e13ef49e3 (diff)
downloadgit-0c37f1fce6cb7997dbb2703d35eef0dfd86c5070.tar.gz
log: --show-signature
This teaches the "log" family of commands to pass the GPG signature in the commit objects to "gpg --verify" via the verify_signed_buffer() interface used to verify signed tag objects. E.g. $ git show --show-signature -s HEAD shows GPG output in the header part of the output. Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'commit.h')
-rw-r--r--commit.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/commit.h b/commit.h
index d2c3e650b1..61076486df 100644
--- a/commit.h
+++ b/commit.h
@@ -218,4 +218,6 @@ struct merge_remote_desc {
*/
struct commit *get_merge_parent(const char *name);
+extern int parse_signed_commit(const unsigned char *sha1,
+ struct strbuf *message, struct strbuf *signature);
#endif /* COMMIT_H */