7 git-apply - Apply patch on a GIT index file and a work tree
12 'git-apply' [--stat] [--summary] [--check] [--index] [--show-files] [--apply] [<patch>...]
16 Reads supplied diff output and applies it on a git index file
22 The files to read patch from. '-' can be used to read
23 from the standard input.
26 Instead of applying the patch, output diffstat for the
27 input. Turns off "apply".
30 Instead of applying the patch, output a condensed
31 summary of information obtained from git diff extended
32 headers, such as creations, renames and mode changes.
36 Instead of applying the patch, see if the patch is
37 applicable to the current work tree and/or the index
38 file and detects errors. Turns off "apply".
41 When --check is in effect, or when applying the patch
42 (which is the default when none of the options that
43 disables it is in effect), make sure the patch is
44 applicable to what the current index file records. If
45 the file to be patched in the work tree is not
46 up-to-date, it is flagged as an error. This flag also
47 causes the index file to be updated.
50 Show summary of files that are affected by the patch.
53 If you use any of the options marked ``Turns off
54 "apply"'' above, git-apply reads and outputs the
55 information you asked without actually applying the
56 patch. Give this flag after those flags to also apply
62 Written by Linus Torvalds <torvalds@osdl.org>
66 Documentation by Junio C Hamano
70 Part of the gitlink:git[7] suite