git-apply: retire unused/unimplemented --no-merge flag.
[git.git] / Documentation / git-apply.txt
1 git-apply(1)
2 ============
3 v0.1, June 2005
4
5 NAME
6 ----
7 git-apply - Apply patch on a GIT index file and a work tree
8
9
10 SYNOPSIS
11 --------
12 'git-apply' [--stat] [--summary] [--check] [--index] [--show-files] [--apply] [<patch>...]
13
14 DESCRIPTION
15 -----------
16 Reads supplied diff output and applies it on a GIT index file
17 and a work tree.
18
19 OPTIONS
20 -------
21 <patch>...::
22         The files to read patch from.  '-' can be used to read
23         from the standard input.
24
25 --stat::
26         Instead of applying the patch, output diffstat for the
27         input.  Turns off "apply".
28
29 --summary::
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.
33         Turns off "apply".
34
35 --check::
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".
39
40 --index::
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.
48
49 --show-files::
50         Show summary of files that are affected by the patch.
51
52 --apply::
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
57         the patch.
58
59
60 Author
61 ------
62 Written by Linus Torvalds <torvalds@osdl.org>
63
64 Documentation
65 --------------
66 Documentation by Junio C Hamano
67
68 GIT
69 ---
70 Part of the gitlink:git[7] suite
71