3.3.6 Uploading a patch for review

Any non-trivial change should be uploaded to our “Rietveld” code review website:

http://codereview.appspot.com/

You can upload a patch for review by using our custom git-cl ‘helper-script’. This section assumes you have already installed, updated, and configured git-cl. See git-cl.

Note: Unless you are familiar with branches, only work on one set of changes at once.

There are two methods, depending on your git setup.

First you will see a terminal editor where you can edit the message that will accompany your patch. git-cl will respect the EDITOR environment variable if defined, otherwise it will use vi as the default editor.

After prompting for your Google email address and password, the patch set will be posted to Rietveld, and you will be given a URL for your patch.

Note: Some installations of git-cl fail when uploading a patch with certain filename extensions. If this happens, it can generally be fixed by editing the list of exceptions at top of ‘git-cl.py’.

Announcing your patch set

You should then announce the patch by logging into the code review issue webpage and using “Publish + Mail Comments” to add a (mostly bogus) comment to your issue. The text of your comment will be sent to our developer mailing list.

Note: There is no automatic notification of a new patch; you must add a comment yourself.

Revisions

As revisions are made in response to comments, successive patch sets for the same issue can be uploaded by reissuing the git-cl command with the modified branch checked out.

Sometimes in response to comments on revisions, the best way to work may require creation of a new branch in git. In order to associate the new branch with an existing Rietveld issue, the following command can be used:

git-cl issue issue-number

where issue-number is the number of the existing Rietveld issue.

Resetting git-cl

If git-cl becomes confused, you can “reset” it by running:

git-cl issue 0

LilyPond — Contributor’s Guide v2.21.0 (development-branch).