blob: 092495271fc6852ccea42d8888f95fe71c7b99a7 [file] [log] [blame]
[email protected]cc51cd02010-12-23 00:48:391# git-cl -- a git-command for integrating reviews on Rietveld
2# Copyright (C) 2008 Evan Martin <[email protected]>
3
4== Background
5Rietveld, also known as http://codereview.appspot.com, is a nice tool
6for code reviews. You upload a patch (and some other data) and it lets
7others comment on your patch.
8
9For more on how this all works conceptually, please see README.codereview.
10The remainder of this document is the nuts and bolts of using git-cl.
11
12== Install
13Copy (symlink) it into your path somewhere, along with Rietveld
14upload.py.
15
16== Setup
17Run this from your git checkout and answer some questions:
18$ git cl config
19
20== How to use it
21Make a new branch. Write some code. Commit it locally. Send it for
22review:
23$ git cl upload
24By default, it diffs against whatever branch the current branch is
25tracking (see "git checkout --track"). An optional last argument is
26passed to "git diff", allowing reviews against other heads.
27
28You'll be asked some questions, and the review issue number will be
29associated with your current git branch, so subsequent calls to upload
30will update that review rather than making a new one.
31
32== git-svn integration
33Review looks good? Commit the code:
34$ git cl dcommit
35This does a git-svn dcommit, with a twist: all changes in the diff
36will be squashed into a single commit, and the description of the commit
37is taken directly from the Rietveld description. This command also accepts
38arguments to "git diff", much like upload.
39Try "git cl dcommit --help" for more options.
40
41== Extra commands
42Print some status info:
43$ git cl status
44
45Edit the issue association on the current branch:
46$ git cl issue 1234
47
48Patch in a review:
49$ git cl patch <url to full patch>
50Try "git cl patch --help" for more options.
51
52vim: tw=72 :