annotate libcxx/utils/google-benchmark/CONTRIBUTING.md @ 150:1d019706d866

LLVM10
author anatofuz
date Thu, 13 Feb 2020 15:10:13 +0900
parents
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
150
anatofuz
parents:
diff changeset
1 # How to contribute #
anatofuz
parents:
diff changeset
2
anatofuz
parents:
diff changeset
3 We'd love to accept your patches and contributions to this project. There are
anatofuz
parents:
diff changeset
4 a just a few small guidelines you need to follow.
anatofuz
parents:
diff changeset
5
anatofuz
parents:
diff changeset
6
anatofuz
parents:
diff changeset
7 ## Contributor License Agreement ##
anatofuz
parents:
diff changeset
8
anatofuz
parents:
diff changeset
9 Contributions to any Google project must be accompanied by a Contributor
anatofuz
parents:
diff changeset
10 License Agreement. This is not a copyright **assignment**, it simply gives
anatofuz
parents:
diff changeset
11 Google permission to use and redistribute your contributions as part of the
anatofuz
parents:
diff changeset
12 project.
anatofuz
parents:
diff changeset
13
anatofuz
parents:
diff changeset
14 * If you are an individual writing original source code and you're sure you
anatofuz
parents:
diff changeset
15 own the intellectual property, then you'll need to sign an [individual
anatofuz
parents:
diff changeset
16 CLA][].
anatofuz
parents:
diff changeset
17
anatofuz
parents:
diff changeset
18 * If you work for a company that wants to allow you to contribute your work,
anatofuz
parents:
diff changeset
19 then you'll need to sign a [corporate CLA][].
anatofuz
parents:
diff changeset
20
anatofuz
parents:
diff changeset
21 You generally only need to submit a CLA once, so if you've already submitted
anatofuz
parents:
diff changeset
22 one (even if it was for a different project), you probably don't need to do it
anatofuz
parents:
diff changeset
23 again.
anatofuz
parents:
diff changeset
24
anatofuz
parents:
diff changeset
25 [individual CLA]: https://developers.google.com/open-source/cla/individual
anatofuz
parents:
diff changeset
26 [corporate CLA]: https://developers.google.com/open-source/cla/corporate
anatofuz
parents:
diff changeset
27
anatofuz
parents:
diff changeset
28 Once your CLA is submitted (or if you already submitted one for
anatofuz
parents:
diff changeset
29 another Google project), make a commit adding yourself to the
anatofuz
parents:
diff changeset
30 [AUTHORS][] and [CONTRIBUTORS][] files. This commit can be part
anatofuz
parents:
diff changeset
31 of your first [pull request][].
anatofuz
parents:
diff changeset
32
anatofuz
parents:
diff changeset
33 [AUTHORS]: AUTHORS
anatofuz
parents:
diff changeset
34 [CONTRIBUTORS]: CONTRIBUTORS
anatofuz
parents:
diff changeset
35
anatofuz
parents:
diff changeset
36
anatofuz
parents:
diff changeset
37 ## Submitting a patch ##
anatofuz
parents:
diff changeset
38
anatofuz
parents:
diff changeset
39 1. It's generally best to start by opening a new issue describing the bug or
anatofuz
parents:
diff changeset
40 feature you're intending to fix. Even if you think it's relatively minor,
anatofuz
parents:
diff changeset
41 it's helpful to know what people are working on. Mention in the initial
anatofuz
parents:
diff changeset
42 issue that you are planning to work on that bug or feature so that it can
anatofuz
parents:
diff changeset
43 be assigned to you.
anatofuz
parents:
diff changeset
44
anatofuz
parents:
diff changeset
45 1. Follow the normal process of [forking][] the project, and setup a new
anatofuz
parents:
diff changeset
46 branch to work in. It's important that each group of changes be done in
anatofuz
parents:
diff changeset
47 separate branches in order to ensure that a pull request only includes the
anatofuz
parents:
diff changeset
48 commits related to that bug or feature.
anatofuz
parents:
diff changeset
49
anatofuz
parents:
diff changeset
50 1. Do your best to have [well-formed commit messages][] for each change.
anatofuz
parents:
diff changeset
51 This provides consistency throughout the project, and ensures that commit
anatofuz
parents:
diff changeset
52 messages are able to be formatted properly by various git tools.
anatofuz
parents:
diff changeset
53
anatofuz
parents:
diff changeset
54 1. Finally, push the commits to your fork and submit a [pull request][].
anatofuz
parents:
diff changeset
55
anatofuz
parents:
diff changeset
56 [forking]: https://help.github.com/articles/fork-a-repo
anatofuz
parents:
diff changeset
57 [well-formed commit messages]: http://tbaggery.com/2008/04/19/a-note-about-git-commit-messages.html
anatofuz
parents:
diff changeset
58 [pull request]: https://help.github.com/articles/creating-a-pull-request