开发者

MGSplitViewController with all github patches?

开发者 https://www.devze.com 2023-04-09 23:45 出处:网络
I am interested in using MGSplitViewController but it seems that is has current bugs, especially when used in a开发者_如何学运维 tabbarController.I see that there are quite a few submitted patches on

I am interested in using MGSplitViewController but it seems that is has current bugs, especially when used in a开发者_如何学运维 tabbarController. I see that there are quite a few submitted patches on github for this. Is there a way to pull the files with all those patches? Or does someone have a branch that they are updating with all the new patches?

Thanks so much.


The article "Quickly applying GitHub pull " details how to apply a pull request (which is at its core a patch)

See the patch and apply section of the Send Pull Request GitHub help

Another approach that’s a bit quicker in one-off cases is to use git-am.

Every pull request has a .patch URL where you can grab a textual patch file to feed into the git-am command:

In your case:

$ git checkout master
$ curl https://github.com/mattgemmell/MGSplitViewController/pull/43.patch | git am
$ git push origin master

Since you can list pull requests through the GitHub api, you can combine that in order to quickly apply all current pending pull requests.


I created an answer for a similar question.

I use git-pull-request to get the list of open pull requests with <number>, <user> and <branch>. This can also be gathered manually at the web page of every request. Then I pull the corresponding github branches directly.

# pull request <number>
git pull https://github.com/<user>/MGSplitViewController <branch>

See Merging a pull request from the github help.


I don't like applying patches with https://github.com/<user>/<repo>/pull/<number>.patchwhen I have the repositories at hand. Especially since commit hashes can change using git am, which would "mess up" the github network view. See should-git-apply-or-git-am-come-up-with-the-same-hash

0

精彩评论

暂无评论...
验证码 换一张
取 消