Open main menu

CDOT Wiki β

Changes

Real World Mozilla Incremental Build Lab

12 bytes added, 09:44, 28 February 2007
Apply a patch
$ patch -p0 < patch.txt
* Here '''-p0 ''' means strip 0 leading directories from each filename in the patch. We do this because we are in the same location (i.e., ./) as the person who created the patch. If the directories were mis-aligned, we would have to strip leading directories using -p1, -p2, etc.
* You can use the '''--dry-run ''' option to test and see what would happen if you did apply the patch. Some people like to call patch with the -s or --silent or --quiet option (all do the same thing). This will suppress all output except error messages, and can make it easier to see which parts don't work.
=== Backing-out a patch ===