« Multiple GMap sizes in Views | Main | Drupal permissions »

June 18, 2010

Using Patch and Diff

This link has useful instructions.

$ sudo diff -ruBN registration_original.php registration_withPhone.php > ~/Desktop/registration.diff

$ sudo patch -p0 < registration.diff
- this command will make original match _withPhone

$ sudo patch -p0 -R < path/file.patch
- reverse a patch; see drupal.org for more.

Git directions:

Install Git
$sudo apt-get install git-core

$ cd to directory containing files to patch (unless header of patch lists directories below that)

$ sudo git apply [path/to/git_patch]

Posted by kkwaiser at June 18, 2010 11:55 AM


Login to leave a comment. Create a new account.