[llvm] [DeveloperPolicy] Update information on commit authorship (PR #191220)
Petr Hosek via llvm-commits
llvm-commits at lists.llvm.org
Thu Apr 9 09:29:54 PDT 2026
================
@@ -718,23 +714,23 @@ Attribution of Changes
----------------------
When contributors submit a patch to an LLVM project, other developers with
-commit access may commit it for the author once appropriate (based on the
-progression of code review, etc.). When doing so, it is important to retain
-correct attribution of contributions to their contributors. However, we do not
-want the source code to be littered with random attributions "this code written
-by J. Random Hacker" (this is noisy and distracting). In practice, the revision
-control system keeps a perfect history of who changed what, and the CREDITS.txt
-file describes higher-level contributions. If you commit a patch for someone
-else, please follow the attribution of changes in the simple manner as outlined
-by the `commit messages`_ section. Overall, please do not add contributor names
-to the source code.
+commit access may merge the PR for the author (based on the
+progression of code review, etc.). Github will automatically ensure that
+authorship is preserved, and one does not need to take any further action. We
+do not want the source code to be littered with random attributions "this code
+written by J. Random Hacker" (this is noisy and distracting). In practice, the
+revision control system keeps a perfect history of who changed what, and the
+CREDITS.txt file describes higher-level contributions. If you need to adjust
+authorship for any reason, please follow the attribution of changes in the
+simple manner as outlined by the `commit messages`_ section. Overall, please do
+not add contributor names to the source code.
Also, don't commit patches authored by others unless they have submitted the
patch to the project or you have been authorized to submit them on their behalf
(you work together and your company authorized you to contribute the patches,
-etc.). The author should first submit them to the relevant project's commit
-list, development list, or LLVM bug tracker component. If someone sends you
-a patch privately, encourage them to submit it to the appropriate list first.
+etc.). The author should first submit them as a Github issue, to the relevant
+category on Discourse, or ideally as a Github Pull Request. If someone sends you
+a patch privately, encourage them to submit it as a Github PR first.
----------------
petrhosek wrote:
```suggestion
etc.). The author should first submit them as a GitHub issue, to the relevant
category on Discourse, or ideally as a GitHub Pull Request. If someone sends you
a patch privately, encourage them to submit it as a GitHub PR first.
```
https://github.com/llvm/llvm-project/pull/191220
More information about the llvm-commits
mailing list