* Display a commit in red if it is not signed.
@ 2018-10-02 9:26 Jayesh Badwaik
2018-10-02 14:46 ` Jeff King
0 siblings, 1 reply; 2+ messages in thread
From: Jayesh Badwaik @ 2018-10-02 9:26 UTC (permalink / raw)
To: git
Is there a way to create git pretty format that sets the color to one
color (say red) only when the commit is unsigned or the signature
cannot be verified?
Thank you
--
Cheers
Jayesh Badwaik
https://jayeshbadwaik.gitlab.io
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Display a commit in red if it is not signed.
2018-10-02 9:26 Display a commit in red if it is not signed Jayesh Badwaik
@ 2018-10-02 14:46 ` Jeff King
0 siblings, 0 replies; 2+ messages in thread
From: Jeff King @ 2018-10-02 14:46 UTC (permalink / raw)
To: Jayesh Badwaik; +Cc: git
On Tue, Oct 02, 2018 at 11:26:19AM +0200, Jayesh Badwaik wrote:
> Is there a way to create git pretty format that sets the color to one
> color (say red) only when the commit is unsigned or the signature
> cannot be verified?
Not currently. There are placeholders to show the signing information
(e.g., %G?). But the log --format language does not yet have any kind of
conditional, and I think you'd want something like "if G? is 'G', then
show this color".
The for-each-ref format language does have this. We'd like to unify them
in the long run, but it hasn't happened yet.
-Peff
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2018-10-02 14:46 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-10-02 9:26 Display a commit in red if it is not signed Jayesh Badwaik
2018-10-02 14:46 ` Jeff King
Code repositories for project(s) associated with this public inbox
https://80x24.org/mirrors/git.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).