| 1 | = How to Apply a Patch = |
| 2 | |
| 3 | If you have a patch that you wish to be apply to your local svn copy of the [wiki:DevelopersCorner#UsingSVN Fusion repository], all you need to do is put the patch file the root of your {{{fusion}}} directory and call: |
| 4 | {{{ |
| 5 | patch -p0 < myPatch.patch |
| 6 | }}} |
| 7 | |
| 8 | There's a chance that the patch you're trying to apply starts from an absolute path reference coder's development machine. The patch command accommodates this situation by trimming leading patch segments from the file references using the {{{-p0}}} to {{{-p6}}} options where the number indicates how many path segments to trim. See more details at http://linux.die.net/man/1/patch |
| 9 | |
| 10 | Patches can be downloaded from trac by clicking the "Original Format" link at the bottom of any trac patch attachment. |
| 11 | |
| 12 | ''For instructions on how to '''create''' a patch, see CreatingPatches'' |
| 13 | |