2015-10-22 08:31:52 +01:00
|
|
|
# patch
|
2014-10-25 12:20:07 +01:00
|
|
|
|
2014-10-28 19:27:51 +00:00
|
|
|
> Patch a file (or files) with a diff file.
|
|
|
|
> Note that diff files contain both the target filenames and list of changes.
|
2014-10-25 12:20:07 +01:00
|
|
|
|
2016-01-07 17:31:27 +00:00
|
|
|
- Apply a patch:
|
2014-10-25 12:20:07 +01:00
|
|
|
|
|
|
|
`patch < {{patchfile}}.diff`
|
|
|
|
|
2016-01-07 17:31:27 +00:00
|
|
|
- Apply a patch to current directory:
|
2014-10-25 12:20:07 +01:00
|
|
|
|
|
|
|
`patch -p1 < {{patchfile}}.diff`
|
|
|
|
|
2016-01-07 17:31:27 +00:00
|
|
|
- Apply the reverse of a patch:
|
2014-10-25 12:20:07 +01:00
|
|
|
|
|
|
|
`patch -R < {{patchfile}}.diff`
|