1

When I commit in Magit, I have the option to "Sign using GPG". But when I revert a commit in Magit, I don't see this option. Is it hidden? If so, how do I activate signing in that context? Otherwise, does the feature not exist?

2

I've just added --gpg-sign to the revert popup.

Since it sounds like you are signing all commits anyway, you might also just set the Git variable commit.gpgSign.

And you can always add your own actions and arguments to a popup. In this case this would have worked:

(magit-define-popup-option 'magit-revert-popup
  ?S "Sign using gpg" "--gpg-sign=" 'magit-read-gpg-secret-key)

For more information about that, see Customizing existing popups

  • Setting commit.gpgSign solved my problem more generally. Now I don't even need the feature from Magit. :) – Jackson Sep 19 '16 at 16:44

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.