diff options
author | Junio C Hamano <gitster@pobox.com> | 2011-10-18 15:53:23 -0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2011-11-12 22:27:38 -0800 |
commit | 0c37f1fce6cb7997dbb2703d35eef0dfd86c5070 (patch) | |
tree | fdef185d235865ca3caccf1f8f0d2a1a723c863f /revision.c | |
parent | ba3c69a9ee1894de397b60d3b548383e13ef49e3 (diff) | |
download | git-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 'revision.c')
-rw-r--r-- | revision.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/revision.c b/revision.c index 8764dde381..064e351084 100644 --- a/revision.c +++ b/revision.c @@ -1469,6 +1469,8 @@ static int handle_revision_opt(struct rev_info *revs, int argc, const char **arg revs->show_notes = 1; revs->show_notes_given = 1; revs->notes_opt.use_default_notes = 1; + } else if (!strcmp(arg, "--show-signature")) { + revs->show_signature = 1; } else if (!prefixcmp(arg, "--show-notes=") || !prefixcmp(arg, "--notes=")) { struct strbuf buf = STRBUF_INIT; |