lazygit icon indicating copy to clipboard operation
lazygit copied to clipboard

Show GPG signature indicator in Commits

Open diktomat opened this issue 3 years ago • 2 comments

Is your feature request related to a problem? Please describe. git log allows viewing GPG signatures with the --show-signature flag. Currently, there is no way (I know of) to see these in Lazygit.

Describe the solution you'd like Provide a configuration option for displaying them:

  1. As little indicator in the Commits panel.
  2. With information like git git log --show-signature does in Log and Patch panels.

Additional context git log -1 --show-signature:

commit ecd0a96cdaef71c29655aa9b58ca414bf5efea1e (HEAD -> main)
gpg: Signature made Mon Apr 25 17:30:23 2022 CEST
gpg:                using RSA key DAC501BB46861CC3D064BA3B50027A3368AA398E
gpg: Good signature from "Benedikt Müller (d12bb) <[email protected]>" [ultimate]
Author: Benedikt Müller <[email protected]>
Date:   Mon Apr 25 17:29:35 2022 +0200

    commit message

diktomat avatar Apr 25 '22 15:04 diktomat

I think this is resolved. lazygit shows the signature details if log.showSignature is set to true in the config.

git config --global log.showSignature true
lazygit

strboul avatar Apr 26 '23 14:04 strboul

I think this would be quite nice. I'd like to see there is a good signature on commits without having to look at the actual commit message. The way it is done by magit is quite nice. Just set the color of the commit hash in the commit list panel to a different color when there is a good signature.

theherk avatar Mar 01 '24 08:03 theherk