summaryrefslogtreecommitdiff
path: root/pretty.c
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2018-11-03 00:53:58 +0900
committerJunio C Hamano <gitster@pobox.com>2018-11-03 00:53:58 +0900
commit11cc180fa5c4428faa64acf3507fa96d9636ad34 (patch)
tree1f7c63ae51bfc659399ab12c70c0066ea94a015e /pretty.c
parent02561896de9d4cd2354e825bf7e6304a3c19d1c3 (diff)
parent4de9394dcb769394f490a0285015a1d26beb54d1 (diff)
downloadgit-11cc180fa5c4428faa64acf3507fa96d9636ad34.tar.gz
Merge branch 'mg/gpg-fingerprint'
New "--pretty=format:" placeholders %GF and %GP that show the GPG key fingerprints have been invented. * mg/gpg-fingerprint: gpg-interface.c: obtain primary key fingerprint as well gpg-interface.c: support getting key fingerprint via %GF format gpg-interface.c: use flags to determine key/signer info presence
Diffstat (limited to 'pretty.c')
-rw-r--r--pretty.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/pretty.c b/pretty.c
index 8ca29e9281..b83a3ecd23 100644
--- a/pretty.c
+++ b/pretty.c
@@ -1256,6 +1256,14 @@ static size_t format_commit_one(struct strbuf *sb, /* in UTF-8 */
if (c->signature_check.key)
strbuf_addstr(sb, c->signature_check.key);
break;
+ case 'F':
+ if (c->signature_check.fingerprint)
+ strbuf_addstr(sb, c->signature_check.fingerprint);
+ break;
+ case 'P':
+ if (c->signature_check.primary_key_fingerprint)
+ strbuf_addstr(sb, c->signature_check.primary_key_fingerprint);
+ break;
default:
return 0;
}