No puede seleccionar más de 25 temas Los temas deben comenzar con una letra o número, pueden incluir guiones ('-') y pueden tener hasta 35 caracteres de largo.

CONTRIBUTING.md 2.5 KiB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. Want to contribute? Great! First, read this page (including the small print at the end).
  2. ### Before you contribute
  3. Before we can use your code, you must sign the
  4. [Google Individual Contributor License Agreement](https://cla.developers.google.com/about/google-individual)
  5. (CLA), which you can do online. The CLA is necessary mainly because you own the
  6. copyright to your changes, even after your contribution becomes part of our
  7. codebase, so we need your permission to use and distribute your code. We also
  8. need to be sure of various other things—for instance that you'll tell us if you
  9. know that your code infringes on other people's patents. You don't have to sign
  10. the CLA until after you've submitted your code for review and a member has
  11. approved it, but you must do it before we can put your code into our codebase.
  12. Before you start working on a larger contribution, you should get in touch with
  13. us first via email with your idea so that we can help out and possibly guide
  14. you. Coordinating up front makes it much easier to avoid frustration later on.
  15. ### Code reviews
  16. All submissions, including submissions by project members, require review. We
  17. use [Gerrit](https://boringssl-review.googlesource.com) for this purpose.
  18. #### Setup
  19. If you have not done so on this machine, you will need to set up a password for
  20. Gerrit. Sign in with a Google account, visit
  21. [this link](https://boringssl.googlesource.com/), and click the "Generate
  22. Password" link in the top right. You will also need to prepare your checkout to
  23. [add Change-Ids](https://gerrit-review.googlesource.com/Documentation/cmd-hook-commit-msg.html)
  24. on commit. Run:
  25. curl -Lo .git/hooks/commit-msg https://boringssl-review.googlesource.com/tools/hooks/commit-msg
  26. chmod u+x .git/hooks/commit-msg
  27. #### Uploading changes
  28. To upload a change, push it to the special `refs/for/master` target:
  29. git push origin HEAD:refs/for/master
  30. The output will then give you a link to the change. Add `agl@google.com` and
  31. `davidben@google.com` as reviewers.
  32. Pushing a commit with the same Change-Id as an existing change will upload a new
  33. version of it. (Use the `git rebase` or `git commit --amend` commands.)
  34. For more detailed instructions, see the
  35. [Gerrit User Guide](https://gerrit-review.googlesource.com/Documentation/intro-user.html).
  36. ### The small print
  37. Contributions made by corporations are covered by a different agreement than
  38. the one above, the
  39. [Software Grant and Corporate Contributor License Agreement](https://cla.developers.google.com/about/google-corporate).