is a tool for doing code reviews. It works with git (including github).NOTE:
We do not currently (1 May 2012) use gerrit at khan academy, though the website below exists. You only need to follow these steps if you have time to kill.
Getting started with gerrit is simple:
- Go to gerrit.khanacademy.org and click on the 'register' link in the top right. Click on the "Register with a Google Account" link. Go through the normal oauth rigamarole to set up permissions.
- When picking a preferred email, you can take the default (your gmail address), but I suggest instead that you register a new email by clicking on the button for that, and use the email address
<whatever>+firstname.lastname@example.org. (Assuming your actual email is
<whatever>@khanacademy.org -- mail agents ignore the
+ and anything after it, which is a nice way to give a "different" email address to different accounts!) You will have to confirm your email address, and then go back to
gerrit.khanacademy.org to actually change your preferred email to this
email address. Your gerrit username will be used for ssh; I suggest using the basename of your gmail address (so
<whatever>). You'll definitely want to put in an ssh key.
- Add the following block to your
If you used something other than your key from
User <your gerrit username>
id_rsa.pub in the previous step, you'll want to add a line saying
IdentityFile <private key file>. You can test by running
ssh gerrithost; you should get a reply that starts
**** Welcome to Gerrit Code Review ****.
Gerrit requires a very particular control flow. TODO(csilvers): finish this if we ever decide to use gerrit.