diff options
author | Sebastian Götte <jaseg@physik.tu-berlin.de> | 2013-03-31 18:03:22 +0200 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2013-03-31 22:38:53 -0700 |
commit | e290c4b944f109aff26cc3db4ae0aec92f3cc126 (patch) | |
tree | 94bfb9ac4f8b038af2efdeb5f4e9729f58905a68 /pretty.c | |
parent | eb307ae7bb78ccde4e2ac69f302ccf8834883628 (diff) | |
download | git-e290c4b944f109aff26cc3db4ae0aec92f3cc126.tar.gz |
pretty printing: extend %G? to include 'N' and 'U'
Expand %G? in pretty format strings to 'N' in case of no GPG signature
and 'U' in case of a good but untrusted GPG signature in addition to
the previous 'G'ood and 'B'ad. This eases writing anyting parsing
git-log output.
Signed-off-by: Sebastian Götte <jaseg@physik-pool.tu-berlin.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'pretty.c')
-rw-r--r-- | pretty.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -1145,6 +1145,8 @@ static size_t format_commit_one(struct strbuf *sb, const char *placeholder, switch (c->signature_check.result) { case 'G': case 'B': + case 'U': + case 'N': strbuf_addch(sb, c->signature_check.result); } break; |