Documentation

Using patch files

There are many different programs for applying patches, some standalone (such as patch), and some integrated into IDEs (such as Eclipse).

Note: Patch files (.patch) are the same as diff files (.diff). The two names come from the programs used to create (diff) and apply (patch) them.

Patching in Linux (and OS X)

To apply the patch:

patch -p0 < fix.patch

where fix.patch is the name of the patch file.

To reverse a patch, use the -R flag.

patch -p0 -R < fix.patch

Patching in Windows

MSysGit includes patch.exe. To do patching, just open GIT Bash and use the Linux instruction above.

Alternatively you can use TortoiseMerge (instructions).