It would be marvelous if tig could support signed commits (git commit -S). As far as my research went so far this is not possible right now.
If it would be helpful to elaborate on this please let me know.
One way or the other, thanks to the entire community for such a wonderful tool.
Yes, please elaborate. Is this about showing something in the main or diff view?
First of: my appologies - my description and title were actually off.
Git allows individual commits to be signed with a pgp key for a while now. This is usually done by passing -S to git comit after setting up the key in gitconfig.
As far as I can tell commiting staged changes within tig using Shift + c does not allow to mimic this behaviour, that is will just issue unsigned commits.
Am I right in this understanding? And if so, is there a prospect of allowing signed commits from within tig using Shift + c.
btw: I noticed that setting the commit behavior globally via git config --global commit.gpgsign true will trigger a password prompt (and supposedly signing) when committing from within tig.
You can configure how Tig calls git commit via the keybindings. By default it is:
bind status C !git commit
so adding the following to ~/.tigrc should be close to what you are asking for:
bind status C !git commit -S
Change status to generic if you want it to work from all views.
Closing this since I think this answers your question.
Sorry for the delay. This was exactly the answer I was looking for. Thank you very much - for the help but also the entire project itself. It is much appreciated.
You're welcome
This works for me:
Edit ~/.tigrc
bind status C !git commit --signoff
Most helpful comment
You can configure how Tig calls
git commitvia the keybindings. By default it is:so adding the following to
~/.tigrcshould be close to what you are asking for:Change
statustogenericif you want it to work from all views.