blob: 507f4f276f1f66019093ea64124ecbcf9a4a11ea [file] [log] [blame]
Fredrik Luthander700f6de2014-03-17 01:07:58 +01001= Gerrit Code Review - Signed-off-by Lines
Shawn O. Pearce7c85da42009-06-24 19:13:32 -07002
3[NOTE]
4This document was literally taken from link:http://git.kernel.org/?p=linux/kernel/git/torvalds/linux-2.6.git;a=blob;f=Documentation/SubmittingPatches;hb=4e8a2372f9255a1464ef488ed925455f53fbdaa1[linux-2.6 Documentation/SubmittingPatches]
5and is covered by the GPLv2.
6
7[[Signed-off-by]]
Yuxuan 'fishy' Wang61698b12013-12-20 12:55:51 -08008== Signed-off-by:
Shawn O. Pearce7c85da42009-06-24 19:13:32 -07009
10To improve tracking of who did what, especially with patches that can
11percolate to their final resting place in the kernel through several
12layers of maintainers, we've introduced a "sign-off" procedure on
13patches that are being emailed around.
14
15The sign-off is a simple line at the end of the explanation for the
16patch, which certifies that you wrote it or otherwise have the right to
17pass it on as a open-source patch. The rules are pretty simple: if you
18can certify the below:
19
20----
21 Developer's Certificate of Origin 1.1
22
23 By making a contribution to this project, I certify that:
24
25 (a) The contribution was created in whole or in part by me and I
26 have the right to submit it under the open source license
27 indicated in the file; or
28
29 (b) The contribution is based upon previous work that, to the best
30 of my knowledge, is covered under an appropriate open source
31 license and I have the right under that license to submit that
32 work with modifications, whether created in whole or in part
33 by me, under the same open source license (unless I am
34 permitted to submit under a different license), as indicated
35 in the file; or
36
37 (c) The contribution was provided directly to me by some other
38 person who certified (a), (b) or (c) and I have not modified
39 it.
40
41 (d) I understand and agree that this project and the contribution
42 are public and that a record of the contribution (including all
43 personal information I submit with it, including my sign-off) is
44 maintained indefinitely and may be redistributed consistent with
45 this project or the open source license(s) involved.
46----
47
48then you just add a line saying
49
50----
51 Signed-off-by: Random J Developer <random@developer.example.org>
52----
53
54using your real name (sorry, no pseudonyms or anonymous contributions.)
55
56Some people also put extra tags at the end. They'll just be ignored for
57now, but you can do this to mark internal company procedures or just
Shawn O. Pearced6078462009-11-02 10:37:01 -080058point out some special detail about the sign-off.
Shawn O. Pearce7c85da42009-06-24 19:13:32 -070059
60If you are a subsystem or branch maintainer, sometimes you need to slightly
61modify patches you receive in order to merge them, because the code is not
62exactly the same in your tree and the submitters'. If you stick strictly to
63rule (c), you should ask the submitter to rediff, but this is a totally
64counter-productive waste of time and energy. Rule (b) allows you to adjust
65the code, but then it is very impolite to change one submitter's code and
66make him endorse your bugs. To solve this problem, it is recommended that
67you add a line between the last Signed-off-by header and yours, indicating
68the nature of your changes. While there is nothing mandatory about this, it
69seems like prepending the description with your mail and/or name, all
70enclosed in square brackets, is noticeable enough to make it obvious that
71you are responsible for last-minute changes. Example :
72
73----
74 Signed-off-by: Random J Developer <random@developer.example.org>
75 [lucky@maintainer.example.org: struct foo moved from foo.c to foo.h]
76 Signed-off-by: Lucky K Maintainer <lucky@maintainer.example.org>
77----
78
Matt Bakera752b322013-11-27 19:19:31 -070079This practice is particularly helpful if you maintain a stable branch and
Shawn O. Pearce7c85da42009-06-24 19:13:32 -070080want at the same time to credit the author, track changes, merge the fix,
81and protect the submitter from complaints. Note that under no circumstances
82can you change the author's identity (the From header), as it is the one
83which appears in the changelog.
84
85[[Acked-by]]
86[[Cc]]
Yuxuan 'fishy' Wang61698b12013-12-20 12:55:51 -080087== Acked-by:, Cc:
Shawn O. Pearce7c85da42009-06-24 19:13:32 -070088
89The Signed-off-by: tag indicates that the signer was involved in the
90development of the patch, or that he/she was in the patch's delivery path.
91
92If a person was not directly involved in the preparation or handling of a
93patch but wishes to signify and record their approval of it then they can
94arrange to have an Acked-by: line added to the patch's changelog.
95
96Acked-by: is often used by the maintainer of the affected code when that
97maintainer neither contributed to nor forwarded the patch.
98
99Acked-by: is not as formal as Signed-off-by:. It is a record that the acker
100has at least reviewed the patch and has indicated acceptance. Hence patch
101mergers will sometimes manually convert an acker's "yep, looks good to me"
102into an Acked-by:.
103
David Pursehouse92463562013-06-24 10:16:28 +0900104Acked-by: does not necessarily indicate acknowledgment of the entire patch.
Shawn O. Pearce7c85da42009-06-24 19:13:32 -0700105For example, if a patch affects multiple subsystems and has an Acked-by: from
David Pursehouse92463562013-06-24 10:16:28 +0900106one subsystem maintainer then this usually indicates acknowledgment of just
107the part which affects that maintainer's code. Judgment should be used here.
Shawn O. Pearce7c85da42009-06-24 19:13:32 -0700108When in doubt people should refer to the original discussion in the mailing
109list archives.
110
111If a person has had the opportunity to comment on a patch, but has not
112provided such comments, you may optionally add a "Cc:" tag to the patch.
113This is the only tag which might be added without an explicit action by the
114person it names. This tag documents that potentially interested parties
115have been included in the discussion
116
117
118[[Reported-by]]
119[[Tested-by]]
120[[Reviewed-by]]
Yuxuan 'fishy' Wang61698b12013-12-20 12:55:51 -0800121== Reported-by:, Tested-by: and Reviewed-by:
Shawn O. Pearce7c85da42009-06-24 19:13:32 -0700122
123If this patch fixes a problem reported by somebody else, consider adding a
124Reported-by: tag to credit the reporter for their contribution. Please
125note that this tag should not be added without the reporter's permission,
126especially if the problem was not reported in a public forum. That said,
127if we diligently credit our bug reporters, they will, hopefully, be
128inspired to help us again in the future.
129
130A Tested-by: tag indicates that the patch has been successfully tested (in
131some environment) by the person named. This tag informs maintainers that
132some testing has been performed, provides a means to locate testers for
133future patches, and ensures credit for the testers.
134
135Reviewed-by:, instead, indicates that the patch has been reviewed and found
136acceptable according to the Reviewer's Statement:
137
138----
139 Reviewer's statement of oversight
140
141 By offering my Reviewed-by: tag, I state that:
142
143 (a) I have carried out a technical review of this patch to
144 evaluate its appropriateness and readiness for inclusion into
145 the mainline kernel.
146
147 (b) Any problems, concerns, or questions relating to the patch
148 have been communicated back to the submitter. I am satisfied
149 with the submitter's response to my comments.
150
151 (c) While there may be things that could be improved with this
152 submission, I believe that it is, at this time, (1) a
153 worthwhile modification to the kernel, and (2) free of known
154 issues which would argue against its inclusion.
155
156 (d) While I have reviewed the patch and believe it to be sound, I
157 do not (unless explicitly stated elsewhere) make any
158 warranties or guarantees that it will achieve its stated
159 purpose or function properly in any given situation.
160----
161
162A Reviewed-by tag is a statement of opinion that the patch is an
163appropriate modification of the kernel without any remaining serious
164technical issues. Any interested reviewer (who has done the work) can
165offer a Reviewed-by tag for a patch. This tag serves to give credit to
166reviewers and to inform maintainers of the degree of review which has been
167done on the patch. Reviewed-by: tags, when supplied by reviewers known to
168understand the subject area and to perform thorough reviews, will normally
169increase the likelihood of your patch getting into the kernel.
170
Yuxuan 'fishy' Wangc955b4c2014-03-25 12:34:20 -0700171GERRIT
172------
Shawn O. Pearce7c85da42009-06-24 19:13:32 -0700173Part of link:index.html[Gerrit Code Review]
Yuxuan 'fishy' Wang99cb68d2013-10-31 17:26:00 -0700174
175SEARCHBOX
176---------