xref: /aosp_15_r20/external/leveldb/CONTRIBUTING.md (revision 9507f98c5f32dee4b5f9e4a38cd499f3ff5c4490)
1*9507f98cSAndroid Build Coastguard Worker# Contributing
2*9507f98cSAndroid Build Coastguard Worker
3*9507f98cSAndroid Build Coastguard WorkerWe'd love to accept your code patches! However, before we can take them, we
4*9507f98cSAndroid Build Coastguard Workerhave to jump a couple of legal hurdles.
5*9507f98cSAndroid Build Coastguard Worker
6*9507f98cSAndroid Build Coastguard Worker## Contributor License Agreements
7*9507f98cSAndroid Build Coastguard Worker
8*9507f98cSAndroid Build Coastguard WorkerPlease fill out either the individual or corporate Contributor License
9*9507f98cSAndroid Build Coastguard WorkerAgreement as appropriate.
10*9507f98cSAndroid Build Coastguard Worker
11*9507f98cSAndroid Build Coastguard Worker* If you are an individual writing original source code and you're sure you
12*9507f98cSAndroid Build Coastguard Workerown the intellectual property, then sign an [individual CLA](https://developers.google.com/open-source/cla/individual).
13*9507f98cSAndroid Build Coastguard Worker* If you work for a company that wants to allow you to contribute your work,
14*9507f98cSAndroid Build Coastguard Workerthen sign a [corporate CLA](https://developers.google.com/open-source/cla/corporate).
15*9507f98cSAndroid Build Coastguard Worker
16*9507f98cSAndroid Build Coastguard WorkerFollow either of the two links above to access the appropriate CLA and
17*9507f98cSAndroid Build Coastguard Workerinstructions for how to sign and return it.
18*9507f98cSAndroid Build Coastguard Worker
19*9507f98cSAndroid Build Coastguard Worker## Submitting a Patch
20*9507f98cSAndroid Build Coastguard Worker
21*9507f98cSAndroid Build Coastguard Worker1. Sign the contributors license agreement above.
22*9507f98cSAndroid Build Coastguard Worker2. Decide which code you want to submit. A submission should be a set of changes
23*9507f98cSAndroid Build Coastguard Workerthat addresses one issue in the [issue tracker](https://github.com/google/leveldb/issues).
24*9507f98cSAndroid Build Coastguard WorkerPlease don't mix more than one logical change per submission, because it makes
25*9507f98cSAndroid Build Coastguard Workerthe history hard to follow. If you want to make a change
26*9507f98cSAndroid Build Coastguard Worker(e.g. add a sample or feature) that doesn't have a corresponding issue in the
27*9507f98cSAndroid Build Coastguard Workerissue tracker, please create one.
28*9507f98cSAndroid Build Coastguard Worker3. **Submitting**: When you are ready to submit, send us a Pull Request. Be
29*9507f98cSAndroid Build Coastguard Workersure to include the issue number you fixed and the name you used to sign
30*9507f98cSAndroid Build Coastguard Workerthe CLA.
31*9507f98cSAndroid Build Coastguard Worker
32*9507f98cSAndroid Build Coastguard Worker## Writing Code ##
33*9507f98cSAndroid Build Coastguard Worker
34*9507f98cSAndroid Build Coastguard WorkerIf your contribution contains code, please make sure that it follows
35*9507f98cSAndroid Build Coastguard Worker[the style guide](https://google.github.io/styleguide/cppguide.html).
36*9507f98cSAndroid Build Coastguard WorkerOtherwise we will have to ask you to make changes, and that's no fun for anyone.
37