Patching with git
March 27th, 2008
I patched the Ruby on Rails bundle for TextMate to allow footnotes to catch Haml views, which might be in files named something.haml or something.html.haml.
The change itself is trivial; making a patch using git was something new and, as it turns out, five steps:
1. Grab the source with git
Wonderland$ git clone git://github.com/drnic/ruby-on-rails-tmbundle.git
2. Make your changes
3. Commit locally, from the root of the source treee
Wonderland$ git commit -a -m 'add support for html.haml templates' Wonderland$ git show
4. Generate a patch file
Wonderland$ git format-patch origin
Leave a Reply