Creating a diff patch for php

Generating the patch:

diff -urp revised_code.php orig_code.php > patch.diff

UPDATE: with svn it’s just:
svn diff > diff.patch

Applying the patch:

patch -p0 < patch.diff

Reference: Using diff to generate patches.

Technorati Tags:

Leave a Reply


Creative Commons License
This work is licensed under a Creative Commons Attribution-NoDerivs 2.5 License.