-p NUM | --strip=NUM Strip NUM leading components from file names. | help |
-F, --fuzz LINES | --fuzz LINES Set the fuzz factor to LINES for inexact matching. | help + man |
-l, --ignore-whitespace | Match patterns loosely, in case tabs or spaces have been munged in your files. | help + man |
-c, --context | --context Interpret the patch as a context difference. | help + man |
-e, --ed | --ed Interpret the patch as an ed script. | help + man |
-n, --normal | --normal Interpret the patch as a normal difference. | help + man |
-u, --unified | --unified Interpret the patch as a unified difference. | help + man |
-N, --forward | When a patch does not apply, patch usually checks if the patch looks like it has been applied already by trying to reverse-apply the first hunk. | help + man |
-R, --reverse | Assume that this patch was created with the old and new files swapped. | help + man |
-i, --input PATCHFILE | --input=PATCHFILE Read patch from PATCHFILE instead of stdin. | help + man |
-o, --output FILE | Send output to outfile instead of patching files in place. | help + man |
-r, --reject-file FILE | Put rejects into rejectfile instead of the default .rej file. | help + man |
-D, --ifdef NAME | --ifdef=NAME Make merged if-then-else output using NAME. | help + man |
--merge merge | Merge a patch file into the original files similar to diff3(1) or merge(1). | help + man |
-E, --remove-empty-files | --remove-empty-files Remove output files that are empty after patching. | help + man |
-Z, --set-utc | Set the modification and access times of patched files from timestamps given in context diff headers. | help + man |
-T, --set-time | Set the modification and access times of patched files from timestamps given in context diff headers. | help + man |
--quoting-style WORD | output file names using quoting style WORD. | help + man |
-b, --backup | --backup Back up the original contents of each file. | help + man |
--backup-if-mismatch | Back up a file if the patch does not match the file exactly and if backups are not otherwise requested. | help + man |
--no-backup-if-mismatch | Do not back up a file if the patch does not match the file exactly and if backups are not otherwise requested. | help + man |
-V, --version-control STYLE | --version-control=STYLE Use STYLE version control. | help + man |
-B, --prefix PREFIX | Use the simple method to determine backup file names (see the -V method or --version-control method option), and append pref to a file name when generating its backup file name. | help + man |
-Y, --basename-prefix PREFIX | Use the simple method to determine backup file names (see the -V method or --version-control method option), and prefix pref to the basename of a file name when generating its backup file name. | help + man |
-z, --suffix SUFFIX | Use the simple method to determine backup file names (see the -V method or --version-control method option), and use suffix as the suffix. | help + man |
-g, --get NUM | This option controls patch's actions when a file is under RCS or SCCS control, and does not exist or is read-only and matches the default version, or when a file is under ClearCase or Perforce… | help + man |
-t, --batch | Suppress questions like -f, but make some different assumptions: skip patches whose headers do not contain file names (the same as -f); | help + man |
-f, --force | Assume that the user knows exactly what he or she is doing, and do not ask any questions. | help + man |
-s, --silent, --quiet | --quiet --silent Work silently unless an error occurs. | help + man |
--verbose | Output extra information about the work being done. | help + man |
--dry-run | Print the results of applying the patches without actually changing any files. | help + man |
--posix | Conform more strictly to the POSIX standard, as follows. | help + man |
-d, --directory DIR | Change to the directory dir immediately, before doing anything else. | help + man |
--reject-format FORMAT | Produce reject files in the specified format (either context or unified). | help + man |
--binary | Write all files in binary mode, except for standard output and /dev/tty. | help + man |
--read-only BEHAVIOR | Behave as requested when trying to modify a read-only file: ignore the potential problem, warn about it (the default), or fail. | help + man |
-v, --version | Print out patch's revision header and patch level, and exit. | help + man |
--help | Print a summary of options and exit. | help + man |
-pnum, --strip num | Strip the smallest prefix containing num leading slashes from each file name found in the patch file. (in the manual page but not in --help) | man |
--follow-symlinks | When looking for input files, follow symbolic links. (in the manual page but not in --help) | man |
-x, --debug num | Set internal debugging flags of interest only to patch patchers. (in the manual page but not in --help) | man |