MGSplitViewController与所有github补丁? [英] MGSplitViewController with all github patches?

查看:145
本文介绍了MGSplitViewController与所有github补丁?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我对使用MGSplitViewController感兴趣,但它似乎有当前的错误,特别是在tabbarController中使用时。我发现在github上有很多提交的补丁。有没有办法使用所有这些补丁来提取文件?还是有人有他们正在更新所有新补丁的分支?

>解决方案

文章快速应用GitHub pull 详细说明如何应用拉取请求(以核心为补丁)



请参阅 patch and apply section of the 发送Pull Request GitHub帮助


另一种在一次性案例中更快一点的方法是使用 git-am



每个拉取请求都有一个 。 patch URL ,您可以抓取一个文本补丁文件,将其添加到 git-am 命令中:


您的情况:

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

由于您可以通过GitHub api列出拉取请求,您可以将其组合起来,以便快速应用所有当前未决的拉取请求。


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.

这篇关于MGSplitViewController与所有github补丁?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆