I’m new to GIT and GitHub (and Homebrew for that matter); the formula for emacs in the main repository is broken in OS X Lion, but there is a “pull request” (https://github.com/mxcl/homebrew/pull/6518) that fixes the problem (but it isn’t merged in the main repository).
How can I update my local copy of the Homebrew repository to have that formula fixed ? If I manage that, will that formula still be updated if the main repository includes that fix ?
Please correct me if the terminology is not correct.
The documentation on Github describes that quite verbose (section Merging a Pull Request):
on your repo:
Now, you have the full content of the
colinrepo (including knowledge of the commit hashes used in that repo). Next is to apply the changes. The docs say that you should do agit merge, but that’s not so good in our case since colin added the changes to hismaster. If he works onmaster(and does some more commits), you’ll get these changes too.Fortunately, the four commits making up the patch are named in the Pull-request:
ae28b29e,df10b69a,e8915488,87f2d1e5. You can apply them withgit cherry-pick:That’s it. You could now delete the remote
colinwithAnother possibility would be to download the patch and apply it:
The patches for pull requests are always available via