Patch creating and reviewing script
Today in IRC, I asked Moshe Weitzman about why all his patches were named mw.patch. So he gave me an answer: it was the shell script he got from Steven Wittens, and I asked him for it. I made afew modifications, and I present you my version of the patch reviewing script.
You’ll probably want to know how to use it, and you’ll probably want to make a few modifications to it.
There are two functions included patch (d) and review (p). The patch function is simple - you call it with a patch name (e.g. d my-patch-name), it calls cvs diff, generates the patch (in this case it would be my-patch-name.patch), and opens it up in your editor of choice.
The review command is slightly more complex: you call it with the url of a patch (e.g. r http://drupal.org/files/issues/my_patch.patch), it downloads and applies the patch, and then generates a diff from it and opens it in the editor.