make some more strings translatable
[TortoiseGit.git] / doc / source / en / TortoiseGit / git_doc / git-merge-index.html.xml
blobc8f1974ef871d89e7d1c65cafe749ed3f21693f8
1 <?xml version="1.0" encoding="UTF-8"?>\r
2 <!DOCTYPE article PUBLIC "-//OASIS//DTD DocBook XML V4.2//EN" "http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd">\r
3 \r
4 <article lang="en" id="git-merge-index(1)">\r
5 <articleinfo>\r
6     <title>git-merge-index(1)</title>\r
7         <indexterm>\r
8                 <primary>git-merge-index(1)</primary>\r
9         </indexterm>\r
10 </articleinfo>\r
11 <simplesect id="_name">\r
12 <title>NAME</title>\r
13 <simpara>git-merge-index - Run a merge for files needing merging</simpara>\r
14 </simplesect>\r
15 <simplesect id="_synopsis">\r
16 <title>SYNOPSIS</title>\r
17 <simpara><emphasis>git merge-index</emphasis> [-o] [-q] &lt;merge-program&gt; (-a | [--] &lt;file&gt;\*)</simpara>\r
18 </simplesect>\r
19 <simplesect id="_description">\r
20 <title>DESCRIPTION</title>\r
21 <simpara>This looks up the &lt;file&gt;(s) in the index and, if there are any merge\r
22 entries, passes the SHA1 hash for those files as arguments 1, 2, 3 (empty\r
23 argument if no file), and &lt;file&gt; as argument 4.  File modes for the three\r
24 files are passed as arguments 5, 6 and 7.</simpara>\r
25 </simplesect>\r
26 <simplesect id="_options">\r
27 <title>OPTIONS</title>\r
28 <variablelist>\r
29 <varlistentry>\r
30 <term>\r
31 --\r
32 </term>\r
33 <listitem>\r
34 <simpara>\r
35         Do not interpret any more arguments as options.\r
36 </simpara>\r
37 </listitem>\r
38 </varlistentry>\r
39 <varlistentry>\r
40 <term>\r
41 -a\r
42 </term>\r
43 <listitem>\r
44 <simpara>\r
45         Run merge against all files in the index that need merging.\r
46 </simpara>\r
47 </listitem>\r
48 </varlistentry>\r
49 <varlistentry>\r
50 <term>\r
51 -o\r
52 </term>\r
53 <listitem>\r
54 <simpara>\r
55         Instead of stopping at the first failed merge, do all of them\r
56         in one shot - continue with merging even when previous merges\r
57         returned errors, and only return the error code after all the\r
58         merges.\r
59 </simpara>\r
60 </listitem>\r
61 </varlistentry>\r
62 <varlistentry>\r
63 <term>\r
64 -q\r
65 </term>\r
66 <listitem>\r
67 <simpara>\r
68         Do not complain about a failed merge program (a merge program\r
69         failure usually indicates conflicts during the merge). This is for\r
70         porcelains which might want to emit custom messages.\r
71 </simpara>\r
72 </listitem>\r
73 </varlistentry>\r
74 </variablelist>\r
75 <simpara>If <emphasis>git-merge-index</emphasis> is called with multiple &lt;file&gt;s (or -a) then it\r
76 processes them in turn only stopping if merge returns a non-zero exit\r
77 code.</simpara>\r
78 <simpara>Typically this is run with a script calling git&#8217;s imitation of\r
79 the <emphasis>merge</emphasis> command from the RCS package.</simpara>\r
80 <simpara>A sample script called <emphasis>git-merge-one-file</emphasis> is included in the\r
81 distribution.</simpara>\r
82 <simpara>ALERT ALERT ALERT! The git "merge object order" is different from the\r
83 RCS <emphasis>merge</emphasis> program merge object order. In the above ordering, the\r
84 original is first. But the argument order to the 3-way merge program\r
85 <emphasis>merge</emphasis> is to have the original in the middle. Don&#8217;t ask me why.</simpara>\r
86 <simpara>Examples:</simpara>\r
87 <literallayout class="monospaced">torvalds@ppc970:~/merge-test&gt; git merge-index cat MM\r
88 This is MM from the original tree.                    # original\r
89 This is modified MM in the branch A.                  # merge1\r
90 This is modified MM in the branch B.                  # merge2\r
91 This is modified MM in the branch B.                  # current contents</literallayout>\r
92 <simpara>or</simpara>\r
93 <literallayout class="monospaced">torvalds@ppc970:~/merge-test&gt; git merge-index cat AA MM\r
94 cat: : No such file or directory\r
95 This is added AA in the branch A.\r
96 This is added AA in the branch B.\r
97 This is added AA in the branch B.\r
98 fatal: merge program failed</literallayout>\r
99 <simpara>where the latter example shows how <emphasis>git-merge-index</emphasis> will stop trying to\r
100 merge once anything has returned an error (i.e., <literal>cat</literal> returned an error\r
101 for the AA file, because it didn&#8217;t exist in the original, and thus\r
102 <emphasis>git-merge-index</emphasis> didn&#8217;t even try to merge the MM thing).</simpara>\r
103 </simplesect>\r
104 <simplesect id="_author">\r
105 <title>Author</title>\r
106 <simpara>Written by Linus Torvalds &lt;<ulink url="mailto:torvalds@osdl.org">torvalds@osdl.org</ulink>&gt;\r
107 One-shot merge by Petr Baudis &lt;<ulink url="mailto:pasky@ucw.cz">pasky@ucw.cz</ulink>&gt;</simpara>\r
108 </simplesect>\r
109 <simplesect id="_documentation">\r
110 <title>Documentation</title>\r
111 <simpara>Documentation by David Greaves, Junio C Hamano and the git-list &lt;<ulink url="mailto:git@vger.kernel.org">git@vger.kernel.org</ulink>&gt;.</simpara>\r
112 </simplesect>\r
113 <simplesect id="_git">\r
114 <title>GIT</title>\r
115 <simpara>Part of the <xref linkend="git(1)"/> suite</simpara>\r
116 </simplesect>\r
117 </article>\r