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