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

Git SSH/GPG signing flags and config

From
Fabian Stelzer <fs@gigacodes.de>
Date
Nov 28, 2021, 12:57 UTC
Message-ID
<20211128125704.4twinfd3wriwdntz@fs>

Hi everyone, the `signing git objects with ssh` series was released with 2.34 and i'd like to thank everyone for your support and the good reviews! I think it would be beneficial now to adjust some of the wording in flags and the config. Currently everything is configured via gpg.* and all the `please sign this` flags are named --(no-?)gpg-sign. I would be in favor of a more generic flag independent of the signing mechanism. Adding something like `--ssh-sign` would suggest that you'd be able to switch signing format with it which i think would not be terribly useful. If you need to use multiple signing mechanism those would usually be configured per repository and can easily be done with an `includeif gitdir:` in your config. Therefore i would suggest just adding a generic `--(no-?)sign` to all the commands that support gpg-sign right now. The only problem i see is a conflict with `--signoff` so i'm open to other naming ideas. The same goes for the config. `sign.` as an alias to `gpg.` would work well with the current settings. Let me know what you think and i could prepare a first patch for one command to see what the alias / config / docs change could look like.

Best regards, Fabian

Next: Junio C Hamano
Message 1 of 3 in “Git SSH/GPG signing flags and config”
  1. Fabian StelzerNov 28, 2021
  2. Junio C HamanoNov 28, 2021
  3. Fabian StelzerDec 5, 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.