git,gerrit,githooks,git-review
From the fine manual: When you submit a change, git review does the following things: it looks up which branch to push to (production or whatever) in the .gitreview file. If it can't find this information, it pushes to master it figures out what "topic" to put on the revision...