Patching FAQ

Last modified: February 11, 2009 - 04:42

Creating Patches

What are all the lines with question marks at the beginning of my patch file?
You might find that your patch begins with one or more lines like:
? sites/default/files
? sites/default/settings.php

You can safely ignore those lines. The question marks indicate files that the cvs diff program has ignored because they are not managed in a CVS repository.
Why does my patch have a "no ending newline" warning?
Sometimes you'll see the following in your patch:
-}
\ No newline at end of file
+}
+

This warning means that the file you have patched does not end with a blank line, which is a standard practice for code files. You can help others not encounter this message by making sure that the files ends with a new line and then re-creating your patch.

Applying Patches

 
 

Drupal is a registered trademark of Dries Buytaert.