From e290c4b944f109aff26cc3db4ae0aec92f3cc126 Mon Sep 17 00:00:00 2001 From: Sebastian Götte Date: Sun, 31 Mar 2013 18:03:22 +0200 Subject: pretty printing: extend %G? to include 'N' and 'U' MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 Signed-off-by: Junio C Hamano --- pretty.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'pretty.c') diff --git a/pretty.c b/pretty.c index 35b592ad83..d3a82d22d3 100644 --- a/pretty.c +++ b/pretty.c @@ -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; -- cgit 1.2.3-korg