Skip to content

Commit 27c9ad1

Browse files
committed
Merge branch 'jc/doc-commit-signoff-config' into next
Documentation update. * jc/doc-commit-signoff-config: commit: document that $command.signoff will not be added
2 parents c11ebcf + 1129780 commit 27c9ad1

File tree

2 files changed

+23
-0
lines changed

2 files changed

+23
-0
lines changed

Documentation/gitfaq.adoc

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,25 @@ Windows would be the configuration `"C:\Program Files\Vim\gvim.exe" --nofork`,
8383
which quotes the filename with spaces and specifies the `--nofork` option to
8484
avoid backgrounding the process.
8585

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+
86105
Credentials
87106
-----------
88107

Documentation/signoff-option.adoc

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,3 +16,7 @@ endif::git-commit[]
1616
+
1717
The `--no-signoff` option can be used to countermand an earlier `--signoff`
1818
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.

0 commit comments

Comments
 (0)