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

Re: [PATCH] gpg-interface: allow selecting key id with env variable

From
MBMarco Beck <mbeck@eaddrinuse.net>
Date
Nov 7, 2021, 16:27 UTC
Message-ID
<YYf+f4DOtILHSNoX@octopus.int.carobme.de>
In-Reply-To
<bc6b915a-7aa0-298b-e1ec-bf548e4dbdfc@gigacodes.de>
On Mon, Oct 25, 2021 at 10:46:56AM +0200, Fabian Stelzer wrote:
Show 11 quoted lines
>
>If you insist on using environment variables there is:
>GIT_CONFIG_KEY_<n>
>GIT_CONFIG_VALUE_<n>
>
>https://git-scm.com/docs/git-config
>
>A bit clunky in my opinion but you can set any config variable via env vars:
>
>e.g.:
>GIT_CONFIG_COUNT=1 GIT_CONFIG_KEY_0=user.name GIT_CONFIG_VALUE_0=testing
Works for me, thank you.
Marco
Previous: Ævar Arnfjörð BjarmasonNext: Junio C Hamano
Message 8 of 9 in “gpg-interface: allow selecting key id with env variable”
  1. gpg-interface: allow selecting key id with env variableMarco Beck, Oct 24, 2021
  2. Junio C HamanoOct 24, 2021
  3. Marco BeckOct 24, 2021
  4. Fabian StelzerOct 25, 2021
  5. Marco BeckOct 25, 2021
  6. Fabian StelzerOct 25, 2021
  7. Ævar Arnfjörð BjarmasonOct 25, 2021
  8. Marco BeckNov 7, 2021
  9. Junio C HamanoOct 25, 2021

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.