Il giorno gio 4 dic 2014 alle 22:48, Glen Larsen <glenl....@gmail.com> ha scritto:
Adding a link to the guide is a good idea but it doesn't exactly match our wiki's entry regarding setting up for contribution. Here is some wiki text that I will add to a new page on reviewing (if one hasn't been created by now.)

Go ahead and create a page on the wiki, I won't have any time in the coming days.

GITHUB's pull/ID/head references a storage location for a pending pull request. If you have created your repository using the wiki page, getting a local copy for review would go something like this:

# A. create & use a new branch (to make cleanup easier later)
git checkout -b oakbucket-review
# B. 484 is the number of the pull request
git fetch upstream pull/484/head

(Note the use of "upstream" as the remote reference.) You could stop here and do a diff,

git diff ...FETCH_HEAD

But if you want to compile the file and review the score as a PDF, you would have to merge first,

# check that you are in your review branch before doing this!
git merge -m'review merge' FETCH_HEAD

I prefer rebase to avoid the merge commit.

You still won't be able to update somebody else's pull request but if during review you find an issue you would like to include in the pull request you have these choices:

1. Create a patch that you could send to the contributor
2. Annotate on GITHUB the line(s) you propose to change in the pull request

A patch can easily be created from git,

git diff -p >date-edit.patch


Perhaps it's better using 'git format-patch' in case the contributor approves it and what to apply to his branch? I don't know if the patch generated with the command above can be applied with 'git am'.


_______________________________________________
Mutopia-discuss mailing list
Mutopia-discuss@mutopiaproject.org
http://lists.bcn.mythic-beasts.com/mailman/listinfo/mutopia-discuss

Reply via email to