Patching (n00bie post)

Time and time again, I forget the proper syntax for applying a patch!

i.e. applying a Linux kernel patch, or a drupal module patch.

So I am making a note of it here, and embarressing myself in the same process (since this is something every nerd should know by heart):

patch -p0 < patch-file-name-here

Also here’s a handy link for creating a CVS respository of the Drupal Codebase, so you can write your own patches, and submit them back to the community: creating drupal patches.

– If your ever patching a linux kernel use:

patch -p1 < patch-file-name-here

No Comment

No comments yet

Leave a reply