Git log pretty-format 有占位符%G?
o %G?: show "G" for a good (valid) signature, "B" for a bad signature, "U" for a good signature with unknown validity, "X" for a good signature that has expired, "Y" for a good signature made by an expired key, "R" for a good signature made by a revoked key, "E" if the signature cannot be checked (e.g. missing key) and "N" for no signature
我想G
用绿色和B
红色打印。我怎样才能做到这一点?
G
用good
和B
替换也很好bad
。
请不要建议使用第三方 cmds,如sed或awk。