diff options
author | Junio C Hamano <gitster@pobox.com> | 2022-07-18 13:31:57 -0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2022-07-18 13:31:57 -0700 |
commit | ba69ae876b0462831cab94e43d1e2876dce3e4cd (patch) | |
tree | a04c3e8737a33f6a4cd4ead29d63d26a5ffd6c3e /pretty.c | |
parent | 7f8d098b1b1ca1e5b91b17d05b51bc5b7a7ad6bf (diff) | |
parent | 803978da494bf88ee60fb9598c94e25d601c5c32 (diff) |
Merge branch 'jd/gpg-interface-trust-level-string'
The code to convert between GPG trust level strings and internal
constants we use to represent them have been cleaned up.
* jd/gpg-interface-trust-level-string:
gpg-interface: add function for converting trust level to string
Diffstat (limited to 'pretty.c')
-rw-r--r-- | pretty.c | 18 |
1 files changed, 1 insertions, 17 deletions
@@ -1575,23 +1575,7 @@ static size_t format_commit_one(struct strbuf *sb, /* in UTF-8 */ strbuf_addstr(sb, c->signature_check.primary_key_fingerprint); break; case 'T': - switch (c->signature_check.trust_level) { - case TRUST_UNDEFINED: - strbuf_addstr(sb, "undefined"); - break; - case TRUST_NEVER: - strbuf_addstr(sb, "never"); - break; - case TRUST_MARGINAL: - strbuf_addstr(sb, "marginal"); - break; - case TRUST_FULLY: - strbuf_addstr(sb, "fully"); - break; - case TRUST_ULTIMATE: - strbuf_addstr(sb, "ultimate"); - break; - } + strbuf_addstr(sb, gpg_trust_level_to_str(c->signature_check.trust_level)); break; default: return 0; |