git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Calling "gpg --sign" with loopback pinentry in some scenarios, but not always

From
JSJens Schmidt <farblos@vodafonemail.de>
Date
Feb 17, 2024, 22:51 UTC
Message-ID
<de38341b-f69f-4d3b-a4c2-4443e1ec1f6f@vodafonemail.de>
Hi.

I'd like to use gpg loopback pinentry mode when signing commits or tags through Emacs/Magit but default, non-loopback pinentry for all other cases.

In particular, configuring "pinentry-mode loopback" in "gpg.conf" is not really an option for me.

It seems that "git" does not have any hooks to pass arbitrary additional parameters to "gpg", right? So my only reasonable option would be a Emacs/Magit-specific "gpg"-wrapper that adds command line parameter "--pinentry-mode loopback" to the wrapped "gpg" executable.

Any other options?
Thanks!
Next: Junio C Hamano
Message 1 of 2 in “Calling "gpg --sign" with loopback pinentry in some scenarios, but not always”
  1. Jens SchmidtFeb 17, 2024
  2. Junio C HamanoFeb 17, 2024

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.