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

Re: [RFC PATCH 2/2] crypto sign: add cryptoSign.* config

From
Eric Sunshine <sunshine@sunshineco.com>
Date
Dec 20, 2021, 22:07 UTC
Message-ID
<CAPig+cRGnMQaDj-qocpAbhQqyksCNqGub+LsspWf7-Dwy=TKzg@mail.gmail.com>
In-Reply-To
<20211220140928.1205586-3-fs@gigacodes.de>
`On Mon, Dec 20, 2021 at 9:09 AM Fabian Stelzer <fs@gigacodes.de> wrote:
Show 18 quoted lines
> Since git now supports multiple cryptographic methods/formats to sign
> objects, the `gpg.` configuration prefix is misleading.
> Add `cryptoSign.`, but keep `gpg.` as a compatibility alias at least for
> all existing options.
> `gpg.mintrustlevel` is moved to `cryptosign.gpg.mintrustlevel` while
> also still allowing the former.
> ---
> diff --git a/Documentation/config/gpg.txt b/Documentation/config/gpg.txt
> @@ -1,6 +1,17 @@
> +cryptoSign.format::
> +gpg.format::
> +       Specifies which key format to use when signing with `--crypto-sign`.
> +       Default is "openpgp". Other possible values are "x509", "ssh".
> +
> +cryptoSign.<format>.program::
> +gpg.<format>.program::
> +       Use this to customize the program used for the signing format you
> +       chose (see `cryptoSign.format`). The default value for

This is a somewhat minor comment, but I find that grouping these config keys together like this gives too much weight to the old `gpg.foo` ones, making it seem as if they're still first-class citizens which people can use freely. If you instead organize them as below, then it is easier to see at a glance that the old keys shouldn't be used:

    cryptoSign.format::
        Specifies which key format to use when signing...
    cryptoSign.<format>.program::
        Use this to customize the program used...
    ...
    gpg.format::
        Deprecated synonym of `cryptoSign.format`.
    gpg.<format>.program::
        Deprecated synonym of `cryptoSign.<format>.program`.

The same observation about grouping of config keys applies to the remainder of the documentation changes in this patch.

Previous: Fabian StelzerNext: Fabian Stelzer
Message 6 of 7 in “cryptoSign flag & config”
  1. 0/2 cryptoSign flag & configFabian Stelzer, Dec 20, 2021
  2. 1/2 crypto sign: add crypto-sign alias flagFabian Stelzer, Dec 20, 2021
  3. Junio C HamanoDec 20, 2021
  4. Fabian StelzerDec 21, 2021
  5. 2/2 crypto sign: add cryptoSign.* configFabian Stelzer, Dec 20, 2021
  6. Eric SunshineDec 20, 2021
  7. Fabian StelzerDec 21, 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.