From: Chris Down <chris@chrisdown.name>
To: "D. Ben Knoble" <ben.knoble@gmail.com>
Cc: git@vger.kernel.org, Junio C Hamano <gitster@pobox.com>,
kernel-team@fb.com
Subject: Re: [PATCH] commit: Add commit.signoff configuration option
Date: Wed, 14 May 2025 17:46:37 +0100 [thread overview]
Message-ID: <aCTI7VjK5QMht3ws@chrisdown.name> (raw)
In-Reply-To: <CALnO6CBdhYFsDN=HPo9HbKeoZH7bb=xVVXUCK7nUdadLg-U_Pw@mail.gmail.com>
[Code changes acked, thank you for the review :-)]
D. Ben Knoble writes:
>It would probably be nice to say why this makes sense in light of
>previously-raised objections, too [1].
>
>[1]: https://lore.kernel.org/git/xmqqo6x4p6z2.fsf@gitster.g/
I understand where people are coming from for sure, but I think the
conversation has moved on beyond many of those points, right? For example, some
of the objections are about format.signoff in 2006, but we merged that into the
tree since 2009 in commit 1d1876e9300c ("Add configuration variable for
sign-off to format-patch").
From those threads, the main arguments seem to be:
- Signoff should be a conscious act
- Adding it automatically might dilute its meaning
- The potential for signoffs through inertia without proper intent
However, I think these objections don't hold up well in light of a few things.
First, the objections conflict with precedent from the now merged
format.signoff. If we've already determined that configuring automatic signoffs
in one context is acceptable (where that will then later become a commit
anyway), it creates inconsistency to reject the same capability in another
closely related context.
Second, setting a configuration value _is_ a conscious act. When I enable
commit.signoff=true in a repository, I'm making a deliberate, repository
specific declaration that I have the rights to submit all work in this
repository under the project's license. This is arguably even more meaningful
than mechanically adding -s to individual commits, either without thought
through muscle memory, or through a shell based, context agnostic alias as many
users do now.
In general, it feels like an inconsistency in semantics to have format.signoff
available but not commit.signoff. From a user's perspective, we're just adding
a signoff trailer to something that will eventually become an upstream commit.
It doesn't really matter whether that's through a mailing list (format-patch),
a pull request (commit), or otherwise.
I'm certainly open to further discussion, of course, but the existing precedent
seems to make a compelling case for this feature.
next prev parent reply other threads:[~2025-05-14 16:46 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-05-13 12:20 [PATCH] commit: Add commit.signoff configuration option Chris Down
2025-05-13 13:12 ` Kristoffer Haugsbakk
2025-05-13 21:09 ` D. Ben Knoble
2025-05-14 16:46 ` Chris Down [this message]
2025-05-15 0:17 ` Junio C Hamano
2025-05-15 13:22 ` Chris Down
2025-05-16 13:09 ` Junio C Hamano
2025-05-16 15:04 ` Chris Down
2025-06-03 6:54 ` Chris Down
2025-06-04 13:32 ` Junio C Hamano
2025-06-05 1:46 ` Collin Funk
2025-06-09 4:24 ` Chris Down
2025-05-16 11:50 ` Ben Knoble
2025-05-16 14:28 ` Chris Down
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=aCTI7VjK5QMht3ws@chrisdown.name \
--to=chris@chrisdown.name \
--cc=ben.knoble@gmail.com \
--cc=git@vger.kernel.org \
--cc=gitster@pobox.com \
--cc=kernel-team@fb.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).