threads / discuss / 61040

Modernise .gitconfig Signing Block Name

Subject: Modernise .gitconfig Signing Block Name

## tl;dr

2 messages between Mar 2, 2024 and Mar 2, 2024.

replies: 1people: 2as markdown or json

admin@inferencium.net· Mar 2, 2024, 20:01 UTC · lore
As SSH has been supported as a signing method for a while now in Git, the block name `gpg` within `.gitconfig` no longer makes sense as it's not the only method of signing commits and tags. I propose renaming `[gpg]` to something such as `[sig]` or `[sign]`. The current method of achieving this is `format = ssh` within the `[gpg]` block, which would be the same (hypothetically) as redefining SHA-1 to be SHA-256 via `format = sha256` within a `[sha1]` block; it really doesn't make sense in 2024 for it to be this way.
The outcome of this would be using `format = gpg` or `format = ssh` within a `[sig]` or `[sign]` block (or whatever anyone comes up with which could be better).
For backwards compatibility, `[gpg]` can also be allowed as an alias for the new name. The default could also be `format = gpg`, as it's still the most widely-used signing method.
Junio C Hamano· Mar 2, 2024, 21:08 UTC · re: admin@inferencium.net · lore

Re: Modernise .gitconfig Signing Block Name

admin@inferencium.net writes:
> For backwards compatibility, `[gpg]` can also be allowed as an
> alias for the new name. The default could also be `format = gpg`,
> as it's still the most widely-used signing method.
Sounds good.  Patches welcome.
Thanks.

← back to recent threads