]> git.99rst.org Git - git.git/commit
gpg-interface: add function for converting trust level to string
authorJaydeep Das <redacted>
Mon, 11 Jul 2022 05:00:50 +0000 (05:00 +0000)
committerJunio C Hamano <redacted>
Mon, 11 Jul 2022 05:10:23 +0000 (22:10 -0700)
commit803978da494bf88ee60fb9598c94e25d601c5c32
tree4ec50d9478d223bc31f4204eec256279cc18d3eb
parente4a4b31577c7419497ac30cebe30d755b97752c5
gpg-interface: add function for converting trust level to string

Add new helper function `gpg_trust_level_to_str()` which will
convert a given member of `enum signature_trust_level` to its
corresponding string (in lowercase). For example, `TRUST_ULTIMATE`
will yield the string "ultimate".

This will abstract out some code in `pretty.c` relating to gpg
signature trust levels.

Mentored-by: Christian Couder <redacted>
Mentored-by: Hariom Verma <redacted>
Signed-off-by: Jaydeep Das <redacted>
Signed-off-by: Junio C Hamano <redacted>
gpg-interface.c
gpg-interface.h
pretty.c
git clone https://git.99rst.org/PROJECT