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:

RSS feed | Trackback URI

Comments »

No comments yet.

Name (required)
E-mail (required - never shown publicly)
URI
Your Comment (smaller size | larger size)
You may use <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> in your comment.

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