README.git-cl 1.7 KB

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