0

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红色打印。我怎样才能做到这一点?

GgoodB替换也很好bad

请不要建议使用第三方 cmds,如sedawk

4

1 回答 1

0

Git 没有提供一种使漂亮格式成为条件的方法,因此无法使用普通的 Git 命令来做你想做的事。您将需要使用其他一些工具来修改输出,这是 Git 开发人员在这种情况下所建议的。

于 2019-10-13T18:16:00.050 回答