git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Modernise .gitconfig Signing Block Name
@ 2024-03-02 20:01 admin
  2024-03-02 21:08 ` Junio C Hamano
  0 siblings, 1 reply; 2+ messages in thread
From: admin @ 2024-03-02 20:01 UTC (permalink / raw)
  To: git@vger.kernel.org

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.

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Modernise .gitconfig Signing Block Name
  2024-03-02 20:01 Modernise .gitconfig Signing Block Name admin
@ 2024-03-02 21:08 ` Junio C Hamano
  0 siblings, 0 replies; 2+ messages in thread
From: Junio C Hamano @ 2024-03-02 21:08 UTC (permalink / raw)
  To: admin; +Cc: git@vger.kernel.org

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.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2024-03-02 21:08 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-03-02 20:01 Modernise .gitconfig Signing Block Name admin
2024-03-02 21:08 ` Junio C Hamano

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).