Tig: Show gpg signature in main view

Created on 17 Oct 2017  ·  8Comments  ·  Source: jonas/tig

I'm working with a few git repos that gpg sign their commits by default.
Signatures are shown in the diff view, but it would be awesome to show them in main view as well (i.e. by some nice UTF-8 icons like or - or even better ones that I don't know so far).

Most helpful comment

I haven't had time to finish up the WIP. This will slow down loading of the main view quite a lot because Git will run gnupg for each commit. I guess that is fine for a first implementation. Later, we could look into fetching the signatures only for the visible commits using an extra load phase.

All 8 comments

I agree this type of hint would be a great addition. Maybe this could be shown before the branch labels.

I propose to show it before the commiters name so it indicates a proper signature by the commiter.
But since you can customize tig's layout, I'd be also fine with your proposal.

Maybe the author column color can change whether the commit is sign or not (red is not signed, green is signed).
It avoids extra space for an other column.

Note that there is no canonical way of retrieving the keys required to verify these signatures. Core git relies on the local GnuPG keyring. Likewise trust for keys is delegated to the GnuPG trust systems, other than, say, GitHub, where the trust for a key is established by having the user upload their public key to their account.

I'd be perfectly fine with showing the local GnuPG keyring trust, everything else would be more work imo.
Meaning, the user should be responsible for retrieving the keys outside of tig.

Any updates on this feature?

Nope.

I haven't had time to finish up the WIP. This will slow down loading of the main view quite a lot because Git will run gnupg for each commit. I guess that is fine for a first implementation. Later, we could look into fetching the signatures only for the visible commits using an extra load phase.

Was this page helpful?
0 / 5 - 0 ratings