]> git.ipfire.org Git - thirdparty/git.git/blame - Documentation/git-apply.txt
upload-pack: Do not choke on too many heads request.
[thirdparty/git.git] / Documentation / git-apply.txt
CommitLineData
d0587fd5
JH
1git-apply(1)
2============
3v0.1, June 2005
4
5NAME
6----
7git-apply - Apply patch on a GIT index file and a work tree
8
9
10SYNOPSIS
11--------
12dd6e8c 12'git-apply' [--no-merge] [--stat] [--summary] [--check] [--index] [--show-files] [--apply] [<patch>...]
d0587fd5
JH
13
14DESCRIPTION
15-----------
16Reads supplied diff output and applies it on a GIT index file
17and a work tree.
18
19OPTIONS
20-------
12dd6e8c
JH
21<patch>...::
22 The files to read patch from. '-' can be used to read
23 from the standard input.
d0587fd5
JH
24
25--no-merge::
26 The default mode of operation is the merge behaviour
12dd6e8c
JH
27 which is not implemented yet. This flag explicitly
28 tells the program not to use the merge behaviour.
d0587fd5
JH
29
30--stat::
31 Instead of applying the patch, output diffstat for the
12dd6e8c 32 input. Turns off "apply".
d0587fd5
JH
33
34--summary::
35 Instead of applying the patch, output a condensed
36 summary of information obtained from git diff extended
37 headers, such as creations, renames and mode changes.
12dd6e8c 38 Turns off "apply".
d0587fd5
JH
39
40--check::
41 Instead of applying the patch, see if the patch is
42 applicable to the current work tree and/or the index
12dd6e8c 43 file and detects errors. Turns off "apply".
d0587fd5
JH
44
45--index::
46 When --check is in effect, or when applying the patch
47 (which is the default when none of the options that
48 disables it is in effect), make sure the patch is
49 applicable to what the current index file records. If
50 the file to be patched in the work tree is not
51 up-to-date, it is flagged as an error. This flag also
52 causes the index file to be updated.
53
54--show-files::
55 Show summary of files that are affected by the patch.
56
12dd6e8c
JH
57--apply::
58 If you use any of the options marked ``Turns off
59 "apply"'' above, git-apply reads and outputs the
60 information you asked without actually applying the
61 patch. Give this flag after those flags to also apply
62 the patch.
63
d0587fd5
JH
64
65Author
66------
67Written by Linus Torvalds <torvalds@osdl.org>
68
69Documentation
70--------------
71Documentation by Junio C Hamano
72
73GIT
74---
a7154e91 75Part of the gitlink:git[7] suite
d0587fd5 76