develooper Front page | perl.perl5.porters | Postings from August 2013

Re: the GitHub perl mirror

Thread Previous | Thread Next
Jan Dubois
August 19, 2013 17:23
Re: the GitHub perl mirror
Message ID:
On Mon, Aug 19, 2013 at 5:31 AM, Nicholas Clark <> wrote:
> Is there enough API in github to be able to easily code the right git
> commands to grab the (anonymous?) branch created by the pull request, and
> extract the patches to inject elsewhere? Without actually instructing
> github to do the merge.

It is trivial to fetch the code for pull requests into your local repo
(using pull request #11 as a sample):

$ git remote add github
$ git fetch github refs/pull/11/head:pr/11
remote: Counting objects: 11, done.
remote: Compressing objects: 100% (5/5), done.
remote: Total 8 (delta 6), reused 5 (delta 3)
Unpacking objects: 100% (8/8), done.
 * [new ref]         refs/pull/11/head -> pr/11
$ git checkout pr/11
Switched to branch 'pr/11'

And as long as you eventually push this commit back to blead, the pull
request should be closed automatically (the SHA1 needs to remain for
Github to recognize it automatically).


Thread Previous | Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About