]> git.ipfire.org Git - thirdparty/git.git/commitdiff
commit: document that $command.signoff will not be added
authorJunio C Hamano <gitster@pobox.com>
Tue, 16 Dec 2025 18:54:15 +0000 (03:54 +0900)
committerJunio C Hamano <gitster@pobox.com>
Wed, 17 Dec 2025 23:17:05 +0000 (08:17 +0900)
Every now and then we see this coming up on the list.  Let's help
new contributors who are not aware of past discussions by clearly
documenting our past consensus.

Helped-by: brian m. carlson <sandals@crustytoothpaste.net>
Helped-by: Elijah Newren <newren@gmail.com>
Helped-by: Johannes Sixt <j6t@kdbg.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Documentation/gitfaq.adoc
Documentation/signoff-option.adoc

index f2917d142c36302d4d9515f2acd6fb50a805cc8a..8d3647d359423ba83930a857f783421a64910ff8 100644 (file)
@@ -83,6 +83,25 @@ Windows would be the configuration `"C:\Program Files\Vim\gvim.exe" --nofork`,
 which quotes the filename with spaces and specifies the `--nofork` option to
 avoid backgrounding the process.
 
+[[sign-off]]
+Why not have `commit.signoff` and other configuration variables?::
+       Git intentionally does not (and will not) provide a
+       configuration variable, such as `commit.signoff`, to
+       automatically add `--signoff` by default.  The reason is to
+       protect the legal and intentional significance of a sign-off.
+       If there were more automated and widely publicized ways for
+       sign-offs to be appended, it would become easier for someone
+       to argue later that a "Signed-off-by" trailer was just added
+       out of habit or by automation, without the committer's full
+       awareness or intent to certify their agreement with the
+       Developer Certificate of Origin (DCO) or a similar statement.
+       This could undermine the sign-off’s credibility in legal or
+       contractual situations.
++
+There exists `format.signoff`, but that is a historical mistake, and
+it is not an excuse to add more mistakes of the same kind on top.
+
+
 Credentials
 -----------
 
index cddfb225d1d62a023d46be53b7665fb90378e55f..9a80d60f1bb1b8e7d90116a264f3d411d58c16d4 100644 (file)
@@ -16,3 +16,7 @@ endif::git-commit[]
 +
 The `--no-signoff` option can be used to countermand an earlier `--signoff`
 option on the command line.
++
+Git does not (and will not) have a configuration variable to enable
+the `--signoff` command line option by default; see the
+`commit.signoff` entry in the gitfaq for more details.