Reviewing patches with gerrit
Finding patches waiting for review
./logerrit query status:openwill show you all patches waiting for review. see gerrit documentation for all the fancy things you can do in addition (for scripting etc.).
Getting a patch
./logerrit cherry-pick CHANGEIDwith CHANGEID being the Change-Id shown by the output of the gerrit query
If you found and fixed a problem during review. You might update the existing patch in gerrit the following way:
git status; git diffwhich makes sure that you have only the single cherry-picked commit and the extra changes on top
git commit -a --amendwhich updates the last commit locally
./logerrit submitwhich pushes all uncommited changes into gerrit; it updates the existing patch in gerrit if the ID stayed the same in the commit message
Comment and Approve
If you want to add comments or approve the patch, the best way is to do it from the Gerrit web interface. Comment by clicking a line of a changed file and when you are done click the Reply... link to publish your review.
Alternatively, you might just push the patch but it will not add the nice comments about reviewing.