{"thread":{"id":"49465","subject":"Display a commit in red if it is not signed.","startedAt":"2018-10-02T09:26:48Z","lastAt":"2018-10-02T14:46:43Z","messageCount":2,"participants":["Jayesh Badwaik","Jeff King"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"359409","messageId":"CAGiqTF47fu85XCFnEbfMEF96v6U=N_Ferr56qAji4eLuBpyxjg@mail.gmail.com","threadId":"49465","inReplyTo":null,"subject":"Display a commit in red if it is not signed.","fromName":"Jayesh Badwaik","fromEmail":"badwaik.jayesh@gmail.com","sentAt":"2018-10-02T09:26:19Z","receivedAt":"2018-10-02T09:26:48Z","isPatch":false,"sender":{"key":"badwaik.jayesh@gmail.com","avatar":null},"body":"Is there a way to create git pretty format that sets the color to one\ncolor (say red) only when the commit is unsigned or the signature\ncannot be verified?\n\nThank you\n\n-- \nCheers\nJayesh Badwaik\nhttps://jayeshbadwaik.gitlab.io\n"},{"id":"359421","messageId":"20181002144639.GC24480@sigill.intra.peff.net","threadId":"49465","inReplyTo":"CAGiqTF47fu85XCFnEbfMEF96v6U=N_Ferr56qAji4eLuBpyxjg@mail.gmail.com","subject":"Re: Display a commit in red if it is not signed.","fromName":"Jeff King","fromEmail":"peff@peff.net","sentAt":"2018-10-02T14:46:40Z","receivedAt":"2018-10-02T14:46:43Z","isPatch":false,"sender":{"key":"peff@peff.net","avatar":"https://avatars.githubusercontent.com/u/45925?v=4"},"body":"On Tue, Oct 02, 2018 at 11:26:19AM +0200, Jayesh Badwaik wrote:\n\n> Is there a way to create git pretty format that sets the color to one\n> color (say red) only when the commit is unsigned or the signature\n> cannot be verified?\n\nNot currently. There are placeholders to show the signing information\n(e.g., %G?). But the log --format language does not yet have any kind of\nconditional, and I think you'd want something like \"if G? is 'G', then\nshow this color\".\n\nThe for-each-ref format language does have this. We'd like to unify them\nin the long run, but it hasn't happened yet.\n\n-Peff\n"}]}