Search code examples
iosipadgithubuisplitviewcontroller

MGSplitViewController with all github patches?


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.


Solution

  • 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.