May 2002
Intermediate to advanced
288 pages
10h 50m
English
patch
Applies a diff file to originals. CVS includes the
patch command-line utility, which must be located
on the path for this task to execute.
backups (all, boolean, N)If true, keep backup copies of unpatched files.
Defaults to false.
ignorewhitespace (all, boolean, N)If true, ignore whitespace differences when
applying the patch file. Defaults to false.
originalfile (all, File, N)The file to patch.
patchfile (all, File, Y)The file containing the diff output.
quiet (all, boolean, N) If true, work silently unless an error occurs.
Defaults to false.
reverse (all, boolean, N)If true, assume patch file was created with old
and new files swapped. Defaults to false.
strip (all, int, N)Strips the smallest prefix containing this number of leading slashes
from filenames. Equivalent to
patch’s -p
option.
None.
Apply the diff included in foo.patch, guessing
filenames from the diff output:
<patch patchfile="foo.patch"/>
See the cvs task.
Read now
Unlock full access