Patching Files

From XMBdocs

Revision as of 20:04, 28 December 2017 by Miqrogroove(Talk | contribs)(Created page with "by JDaniels '''How To:''' Each file has a section in the diff file. The header looks like this: <pre>diff -ur releases/XMB-1.9.9-Saigo/Files/include/validate.inc.php XMB-1...")

In this example, the changes are going to be made to include/validate.inc.php.

Following that, there are line numbers of the old file and new file. This denotes the affected section of code of each file:

@@ -509,6 +509,6 @@

Then comes the code change itself. Lines that begin with a + (plus) are lines that need to be inserted. Lines that begin with a - (minus) are lines that need to be removed. Lines that do not begin with either, are unchanged reference lines to help locate the section of code.