--exclude <path> | Don't apply changes matching the given path |
--include <path> | Apply changes matching the given path |
-p <num> | Remove <num> leading slashes from traditional diff paths |
--no-add | Ignore additions made by the patch |
--stat | Instead of applying the patch, output diffstat for the input |
--numstat | Show number of added and deleted lines in decimal notation |
--summary | Instead of applying the patch, output a summary for the input |
--check | Instead of applying the patch, see if the patch is applicable |
--index | Make sure the patch is applicable to the current index |
-N, --intent-to-add | Mark new files with `git add --intent-to-add` |
--cached | Apply a patch without touching the working tree |
--unsafe-paths | Accept a patch that touches outside the working area |
--apply | Also apply the patch (use with --stat/--summary/--check) |
-3, --3way | Attempt three-way merge if a patch does not apply |
--build-fake-ancestor <file> | Build a temporary index based on embedded index information |
-z | Paths are separated with NUL character |
-C <n> | Ensure at least <n> lines of context match |
--whitespace <action> | Detect new or modified lines that have whitespace errors |
--ignore-space-change, --ignore-whitespace | Ignore changes in whitespace when finding context |
-R, --reverse | Apply the patch in reverse |
--unidiff-zero | Don't expect at least one line of context |
--reject | Leave the rejected hunks in corresponding *.rej files |
--allow-overlap | Allow overlapping hunks |
-v, --verbose | Be verbose |
--inaccurate-eof | Tolerate incorrectly detected missing new-line at the end of file |
--recount | Do not trust the line counts in the hunk headers |
--directory <root> | Prepend <root> to all filenames |