Fast Patches with Git

In my work, I deal with a lot of very similar codebases - and often if I fix something in one project I'll want to fix it in many others. For a long time this has meant popping open Beyond Compare, which works, but isn't the simplest solution.

I use git on my projects - but they're not similar enough just to be branches. Recently I came up with a way to patch one or more commits from a project to another easily. Here is a simple shell script I wrote to handle the task.

Simply put, you can use it either by fast-patch.sh /z/my_project to patch a project with the latest commit from the project in the working directory or with an optional paramater, specify a number of commits, eg fast-patch.sh /z/my_project 5

Also, it will generate a patch log to ~/fastPatch.log which I generally use directly for my commit message by way of git commit -F ~/fastPatch.log

Any comments on how I could improve it, or questions are quite welcome.


Read More / Comment

A Balanced Look at GZIP and the User Experience

With Google recently starting to involve load time in search rankings, there has been a lot of talk about GZIP.  Google Webmaster Tools exclaims "Compressing the following resources with gzip could reduce their transfer size by XKB:". Many people listen to this, and go out looking for a quick f…
Read More / Comment

There Isn't an App for… - Part 1: PhpED

“There Isn't an App For That” - Windows Apps I haven't been able to replace in Mac OS X For a very long time I was a Windows guy, I was once a DOS guy. I switched nearly exclusively to Mac for my home use about 4 years ago. I’ve been very happy with it. Its stable, well engineered,…
Read More / Comment

Photo Booth

Photo of Jesse G. Donat
Photo of Jesse G. Donat
Photo of Jesse G. Donat
Photo of Jesse G. Donat
Photo of Jesse G. Donat
Photo of Jesse G. Donat
Photo of Jesse G. Donat
Photo of Jesse G. Donat
Photo of Jesse G. Donat

Twitter @donatJ

I'm feeling like garbage - I'm going to sleep.
September 2, 2010, 10:56 pm – Link

Heard a Techno-Hiphop remix of Joanna Newsoms "Book of Right-On" on 89.3 today, puked in my mouth.
September 2, 2010, 3:35 pm – Link

Someone smashed a few beer bottles in my driveway last night. Thank you so much - I love to start my day to shattered glass.
September 2, 2010, 12:23 pm – Link

The new iTunes icon is a sin against humanity. I feel like vomiting...
September 1, 2010, 2:35 pm – Link

:-)
September 1, 2010, 12:33 am – Link

RT : I'm happy to have educated a lot of mootools devs to do the new hot thing called "code bitching"
August 31, 2010, 5:38 pm – Link

Last.fm donatJ

Pixies - Bossanova
Iron & Wine - Our Endless Numbered Days
A.C. Newman - Get Guilty

Iron & Wine - The Shepherd's Dog
Air - Moon Safari
The Avett Brothers - I And Love And You

Pixies - Come on Pilgrim
Buddy Wakefield - A Stretch of Presence
Panic at the Disco - Live In Chicago

Flickr donatJ

STP81610
STP81609
STP81608
STP81607
STP81606
STP81605
STP81603
STP81602
STP81601

Tag Cloud