commit: document that $command.signoff will not be added

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>

Junio C Hamano committed Dec 17, 2025 at 03:54 UTC 1129780f6ab19f0a295c0b436890c510f71024f4
2 files changed +23
Documentation/gitfaq.adoc
+19
@@ -83,6 +83,25 @@ Windows would be the configuration `"C:\Program Files\Vim\gvim.exe" --nofork`,
83 which quotes the filename with spaces and specifies the `--nofork` option to
84 avoid backgrounding the process.
85
86 +[[sign-off]]
87 +Why not have `commit.signoff` and other configuration variables?::
88 + Git intentionally does not (and will not) provide a
89 + configuration variable, such as `commit.signoff`, to
90 + automatically add `--signoff` by default. The reason is to
91 + protect the legal and intentional significance of a sign-off.
92 + If there were more automated and widely publicized ways for
93 + sign-offs to be appended, it would become easier for someone
94 + to argue later that a "Signed-off-by" trailer was just added
95 + out of habit or by automation, without the committer's full
96 + awareness or intent to certify their agreement with the
97 + Developer Certificate of Origin (DCO) or a similar statement.
98 + This could undermine the sign-off’s credibility in legal or
99 + contractual situations.
100 ++
101 +There exists `format.signoff`, but that is a historical mistake, and
102 +it is not an excuse to add more mistakes of the same kind on top.
103 +
104 +
105 Credentials
106 -----------
107
Documentation/signoff-option.adoc
+4
@@ -16,3 +16,7 @@ endif::git-commit[]
16 +
17 The `--no-signoff` option can be used to countermand an earlier `--signoff`
18 option on the command line.
19 ++
20 +Git does not (and will not) have a configuration variable to enable
21 +the `--signoff` command line option by default; see the
22 +`commit.signoff` entry in the gitfaq for more details.