diff options
author | Junio C Hamano <gitster@pobox.com> | 2018-11-03 00:53:58 +0900 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2018-11-03 00:53:58 +0900 |
commit | 11cc180fa5c4428faa64acf3507fa96d9636ad34 (patch) | |
tree | 1f7c63ae51bfc659399ab12c70c0066ea94a015e /pretty.c | |
parent | 02561896de9d4cd2354e825bf7e6304a3c19d1c3 (diff) | |
parent | 4de9394dcb769394f490a0285015a1d26beb54d1 (diff) | |
download | git-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.c | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -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; } |