Some might find patch-grep useful I wrote the attached script tonight for being able to do hunk-based greps of my patch collection. Some might find this useful. Perhaps we should even include it in CVS. We'll see.
Created attachment 5436 [details] patch-grep in all its glory
You can use this like so: cat mypatch.patch | patch-grep -h -e XSL and it will print all hunks from mypatch.patch which match XSL, it will print them with the proper headers, so that the resulting output could be applied elsewhere. This is useful for pruning down large cleanup patches into manageable chunks.
Created attachment 5437 [details] patch-grep in all its glory (now with more spellcheck!)