Skip to content

Commit 761a4e9

Browse files
committed
Merge branch 'bk/sob-dco'
Document that the meaning of a Signed-off-by trailer can vary from project to project in the end-user documentation, and clarify what it means to this project. * bk/sob-dco: Documentation: stylistically normalize references to Signed-off-by: SubmittingPatches: clarify DCO is our --signoff rule Documentation: clarify and expand description of --signoff doc: preparatory clean-up of description on the sign-off option
2 parents 0be2d65 + 3abd4a6 commit 761a4e9

22 files changed

+60
-54
lines changed

Documentation/MyFirstContribution.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -249,7 +249,7 @@ component you're working on, followed by a blank line (always required) and then
249249
the body of your commit message, which should provide the bulk of the context.
250250
Remember to be explicit and provide the "Why" of your change, especially if it
251251
couldn't easily be understood from your diff. When editing your commit message,
252-
don't remove the Signed-off-by line which was added by `-s` above.
252+
don't remove the `Signed-off-by` trailer which was added by `-s` above.
253253

254254
----
255255
psuh: add a built-in by popular demand

Documentation/SubmittingPatches

Lines changed: 19 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,7 @@ send them as replies to either an additional "cover letter" message
209209
(see below), the first patch, or the respective preceding patch.
210210

211211
If your log message (including your name on the
212-
Signed-off-by line) is not writable in ASCII, make sure that
212+
`Signed-off-by` trailer) is not writable in ASCII, make sure that
213213
you send off a message in the correct encoding.
214214

215215
WARNING: Be wary of your MUAs word-wrap
@@ -229,7 +229,7 @@ previously sent.
229229
The `git format-patch` command follows the best current practice to
230230
format the body of an e-mail message. At the beginning of the
231231
patch should come your commit message, ending with the
232-
Signed-off-by: lines, and a line that consists of three dashes,
232+
`Signed-off-by` trailers, and a line that consists of three dashes,
233233
followed by the diffstat information and the patch itself. If
234234
you are forwarding a patch from somebody else, optionally, at
235235
the beginning of the e-mail message just before the commit
@@ -298,17 +298,14 @@ Do not forget to add trailers such as `Acked-by:`, `Reviewed-by:` and
298298
patch.
299299

300300
[[sign-off]]
301-
=== Certify your work by adding your "Signed-off-by: " line
301+
=== Certify your work by adding your `Signed-off-by` trailer
302302

303-
To improve tracking of who did what, we've borrowed the
304-
"sign-off" procedure from the Linux kernel project on patches
305-
that are being emailed around. Although core Git is a lot
306-
smaller project it is a good discipline to follow it.
303+
To improve tracking of who did what, we ask you to certify that you
304+
wrote the patch or have the right to pass it on under the same license
305+
as ours, by "signing off" your patch. Without sign-off, we cannot
306+
accept your patches.
307307

308-
The sign-off is a simple line at the end of the explanation for
309-
the patch, which certifies that you wrote it or otherwise have
310-
the right to pass it on as an open-source patch. The rules are
311-
pretty simple: if you can certify the below D-C-O:
308+
If you can certify the below D-C-O:
312309

313310
[[dco]]
314311
.Developer's Certificate of Origin 1.1
@@ -338,23 +335,29 @@ d. I understand and agree that this project and the contribution
338335
this project or the open source license(s) involved.
339336
____
340337

341-
then you just add a line saying
338+
you add a "Signed-off-by" trailer to your commit, that looks like
339+
this:
342340

343341
....
344342
Signed-off-by: Random J Developer <random@developer.example.org>
345343
....
346344

347-
This line can be automatically added by Git if you run the git-commit
348-
command with the -s option.
345+
This line can be added by Git if you run the git-commit command with
346+
the -s option.
349347

350-
Notice that you can place your own Signed-off-by: line when
348+
Notice that you can place your own `Signed-off-by` trailer when
351349
forwarding somebody else's patch with the above rules for
352350
D-C-O. Indeed you are encouraged to do so. Do not forget to
353351
place an in-body "From: " line at the beginning to properly attribute
354352
the change to its true author (see (2) above).
355353

354+
This procedure originally came from the Linux kernel project, so our
355+
rule is quite similar to theirs, but what exactly it means to sign-off
356+
your patch differs from project to project, so it may be different
357+
from that of the project you are accustomed to.
358+
356359
[[real-name]]
357-
Also notice that a real name is used in the Signed-off-by: line. Please
360+
Also notice that a real name is used in the `Signed-off-by` trailer. Please
358361
don't hide your real name.
359362

360363
[[commit-trailers]]

Documentation/config/format.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ format.thread::
7979

8080
format.signOff::
8181
A boolean value which lets you enable the `-s/--signoff` option of
82-
format-patch by default. *Note:* Adding the Signed-off-by: line to a
82+
format-patch by default. *Note:* Adding the `Signed-off-by` trailer to a
8383
patch should be a conscious act and means that you certify you have
8484
the rights to submit this work under the same open source license.
8585
Please see the 'SubmittingPatches' document for further discussion.

Documentation/git-am.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ OPTIONS
3333

3434
-s::
3535
--signoff::
36-
Add a `Signed-off-by:` line to the commit message, using
36+
Add a `Signed-off-by` trailer to the commit message, using
3737
the committer identity of yourself.
3838
See the signoff option in linkgit:git-commit[1] for more information.
3939

Documentation/git-cherry-pick.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ effect to your index in a row.
104104

105105
-s::
106106
--signoff::
107-
Add Signed-off-by line at the end of the commit message.
107+
Add a `Signed-off-by` trailer at the end of the commit message.
108108
See the signoff option in linkgit:git-commit[1] for more information.
109109

110110
-S[<keyid>]::

Documentation/git-commit.txt

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@ commit by giving the same set of parameters (options and paths).
5959
If you make a commit and then find a mistake immediately after
6060
that, you can recover from it with 'git reset'.
6161

62+
:git-commit: 1
6263

6364
OPTIONS
6465
-------
@@ -163,14 +164,7 @@ The `-m` option is mutually exclusive with `-c`, `-C`, and `-F`.
163164
message, the commit is aborted. This has no effect when a message
164165
is given by other means, e.g. with the `-m` or `-F` options.
165166

166-
-s::
167-
--signoff::
168-
Add Signed-off-by line by the committer at the end of the commit
169-
log message. The meaning of a signoff depends on the project,
170-
but it typically certifies that committer has
171-
the rights to submit this work under the same license and
172-
agrees to a Developer Certificate of Origin
173-
(see http://developercertificate.org/ for more information).
167+
include::signoff-option.txt[]
174168

175169
-n::
176170
--no-verify::

Documentation/git-format-patch.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ include::diff-options.txt[]
119119

120120
-s::
121121
--signoff::
122-
Add `Signed-off-by:` line to the commit message, using
122+
Add a `Signed-off-by` trailer to the commit message, using
123123
the committer identity of yourself.
124124
See the signoff option in linkgit:git-commit[1] for more information.
125125

Documentation/git-rebase.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -496,7 +496,7 @@ See also INCOMPATIBLE OPTIONS below.
496496
See also INCOMPATIBLE OPTIONS below.
497497

498498
--signoff::
499-
Add a Signed-off-by: trailer to all the rebased commits. Note
499+
Add a `Signed-off-by` trailer to all the rebased commits. Note
500500
that if `--interactive` is given then only commits marked to be
501501
picked, edited or reworded will have the trailer added.
502502
+

Documentation/git-revert.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ effect to your index in a row.
9999

100100
-s::
101101
--signoff::
102-
Add Signed-off-by line at the end of the commit message.
102+
Add a `Signed-off-by` trailer at the end of the commit message.
103103
See the signoff option in linkgit:git-commit[1] for more information.
104104

105105
--strategy=<strategy>::

Documentation/git-send-email.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -313,7 +313,7 @@ Automating
313313
the value of `sendemail.identity`.
314314

315315
--[no-]signed-off-by-cc::
316-
If this is set, add emails found in Signed-off-by: or Cc: lines to the
316+
If this is set, add emails found in the `Signed-off-by` trailer or Cc: lines to the
317317
cc list. Default is the value of `sendemail.signedoffbycc` configuration
318318
value; if that is unspecified, default to --signed-off-by-cc.
319319

@@ -340,7 +340,7 @@ Automating
340340
except for self (use 'self' for that).
341341
- 'bodycc' will avoid including anyone mentioned in Cc lines in the
342342
patch body (commit message) except for self (use 'self' for that).
343-
- 'sob' will avoid including anyone mentioned in Signed-off-by lines except
343+
- 'sob' will avoid including anyone mentioned in the Signed-off-by trailers except
344344
for self (use 'self' for that).
345345
- 'misc-by' will avoid including anyone mentioned in Acked-by,
346346
Reviewed-by, Tested-by and other "-by" lines in the patch body,

0 commit comments

Comments
 (0)