OSDN Git Service

merge original branch.
[tortoisegit/TortoiseGitJp.git] / doc / source / en / TortoiseGit / git_doc / git-cvsexportcommit.html.xml
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-cvsexportcommit(1)">\r
5 <articleinfo>\r
6     <title>git-cvsexportcommit(1)</title>\r
7         <indexterm>\r
8                 <primary>git-cvsexportcommit(1)</primary>\r
9         </indexterm>\r
10 </articleinfo>\r
11 <simplesect id="_name">\r
12 <title>NAME</title>\r
13 <simpara>git-cvsexportcommit - Export a single commit to a CVS checkout</simpara>\r
14 </simplesect>\r
15 <simplesect id="_synopsis">\r
16 <title>SYNOPSIS</title>\r
17 <simpara><emphasis>git cvsexportcommit</emphasis> [-h] [-u] [-v] [-c] [-P] [-p] [-a] [-d cvsroot]\r
18         [-w cvsworkdir] [-W] [-f] [-m msgprefix] [PARENTCOMMIT] COMMITID</simpara>\r
19 </simplesect>\r
20 <simplesect id="_description">\r
21 <title>DESCRIPTION</title>\r
22 <simpara>Exports a commit from GIT to a CVS checkout, making it easier\r
23 to merge patches from a git repository into a CVS repository.</simpara>\r
24 <simpara>Specify the name of a CVS checkout using the -w switch or execute it\r
25 from the root of the CVS working copy. In the latter case GIT_DIR must\r
26 be defined. See examples below.</simpara>\r
27 <simpara>It does its best to do the safe thing, it will check that the files are\r
28 unchanged and up to date in the CVS checkout, and it will not autocommit\r
29 by default.</simpara>\r
30 <simpara>Supports file additions, removals, and commits that affect binary files.</simpara>\r
31 <simpara>If the commit is a merge commit, you must tell <emphasis>git-cvsexportcommit</emphasis> what\r
32 parent the changeset should be done against.</simpara>\r
33 </simplesect>\r
34 <simplesect id="_options">\r
35 <title>OPTIONS</title>\r
36 <variablelist>\r
37 <varlistentry>\r
38 <term>\r
39 -c\r
40 </term>\r
41 <listitem>\r
42 <simpara>\r
43         Commit automatically if the patch applied cleanly. It will not\r
44         commit if any hunks fail to apply or there were other problems.\r
45 </simpara>\r
46 </listitem>\r
47 </varlistentry>\r
48 <varlistentry>\r
49 <term>\r
50 -p\r
51 </term>\r
52 <listitem>\r
53 <simpara>\r
54         Be pedantic (paranoid) when applying patches. Invokes patch with\r
55         --fuzz=0\r
56 </simpara>\r
57 </listitem>\r
58 </varlistentry>\r
59 <varlistentry>\r
60 <term>\r
61 -a\r
62 </term>\r
63 <listitem>\r
64 <simpara>\r
65         Add authorship information. Adds Author line, and Committer (if\r
66         different from Author) to the message.\r
67 </simpara>\r
68 </listitem>\r
69 </varlistentry>\r
70 <varlistentry>\r
71 <term>\r
72 -d\r
73 </term>\r
74 <listitem>\r
75 <simpara>\r
76         Set an alternative CVSROOT to use.  This corresponds to the CVS\r
77         -d parameter.  Usually users will not want to set this, except\r
78         if using CVS in an asymmetric fashion.\r
79 </simpara>\r
80 </listitem>\r
81 </varlistentry>\r
82 <varlistentry>\r
83 <term>\r
84 -f\r
85 </term>\r
86 <listitem>\r
87 <simpara>\r
88         Force the merge even if the files are not up to date.\r
89 </simpara>\r
90 </listitem>\r
91 </varlistentry>\r
92 <varlistentry>\r
93 <term>\r
94 -P\r
95 </term>\r
96 <listitem>\r
97 <simpara>\r
98         Force the parent commit, even if it is not a direct parent.\r
99 </simpara>\r
100 </listitem>\r
101 </varlistentry>\r
102 <varlistentry>\r
103 <term>\r
104 -m\r
105 </term>\r
106 <listitem>\r
107 <simpara>\r
108         Prepend the commit message with the provided prefix.\r
109         Useful for patch series and the like.\r
110 </simpara>\r
111 </listitem>\r
112 </varlistentry>\r
113 <varlistentry>\r
114 <term>\r
115 -u\r
116 </term>\r
117 <listitem>\r
118 <simpara>\r
119         Update affected files from CVS repository before attempting export.\r
120 </simpara>\r
121 </listitem>\r
122 </varlistentry>\r
123 <varlistentry>\r
124 <term>\r
125 -w\r
126 </term>\r
127 <listitem>\r
128 <simpara>\r
129         Specify the location of the CVS checkout to use for the export. This\r
130         option does not require GIT_DIR to be set before execution if the\r
131         current directory is within a git repository.  The default is the\r
132         value of <emphasis>cvsexportcommit.cvsdir</emphasis>.\r
133 </simpara>\r
134 </listitem>\r
135 </varlistentry>\r
136 <varlistentry>\r
137 <term>\r
138 -W\r
139 </term>\r
140 <listitem>\r
141 <simpara>\r
142         Tell cvsexportcommit that the current working directory is not only\r
143         a Git checkout, but also the CVS checkout.  Therefore, Git will\r
144         reset the working directory to the parent commit before proceeding.\r
145 </simpara>\r
146 </listitem>\r
147 </varlistentry>\r
148 <varlistentry>\r
149 <term>\r
150 -v\r
151 </term>\r
152 <listitem>\r
153 <simpara>\r
154         Verbose.\r
155 </simpara>\r
156 </listitem>\r
157 </varlistentry>\r
158 </variablelist>\r
159 </simplesect>\r
160 <simplesect id="_configuration">\r
161 <title>CONFIGURATION</title>\r
162 <variablelist>\r
163 <varlistentry>\r
164 <term>\r
165 cvsexportcommit.cvsdir\r
166 </term>\r
167 <listitem>\r
168 <simpara>\r
169         The default location of the CVS checkout to use for the export.\r
170 </simpara>\r
171 </listitem>\r
172 </varlistentry>\r
173 </variablelist>\r
174 </simplesect>\r
175 <simplesect id="_examples">\r
176 <title>EXAMPLES</title>\r
177 <variablelist>\r
178 <varlistentry>\r
179 <term>\r
180 Merge one patch into CVS\r
181 </term>\r
182 <listitem>\r
183 <literallayout>$ export GIT_DIR=~/project/.git\r
184 $ cd ~/project_cvs_checkout\r
185 $ git cvsexportcommit -v &lt;commit-sha1&gt;\r
186 $ cvs commit -F .msg &lt;files&gt;</literallayout>\r
187 </listitem>\r
188 </varlistentry>\r
189 <varlistentry>\r
190 <term>\r
191 Merge one patch into CVS (-c and -w options). The working directory is within the Git Repo\r
192 </term>\r
193 <listitem>\r
194 <literallayout>        $ git cvsexportcommit -v -c -w ~/project_cvs_checkout &lt;commit-sha1&gt;</literallayout>\r
195 </listitem>\r
196 </varlistentry>\r
197 <varlistentry>\r
198 <term>\r
199 Merge pending patches into CVS automatically&#8201;&#8212;&#8201;only if you really know what you are doing\r
200 </term>\r
201 <listitem>\r
202 <literallayout>$ export GIT_DIR=~/project/.git\r
203 $ cd ~/project_cvs_checkout\r
204 $ git cherry cvshead myhead | sed -n 's/^+ //p' | xargs -l1 git cvsexportcommit -c -p -v</literallayout>\r
205 </listitem>\r
206 </varlistentry>\r
207 </variablelist>\r
208 </simplesect>\r
209 <simplesect id="_author">\r
210 <title>Author</title>\r
211 <simpara>Written by Martin Langhoff &lt;<ulink url="mailto:martin@catalyst.net.nz">martin@catalyst.net.nz</ulink>&gt; and others.</simpara>\r
212 </simplesect>\r
213 <simplesect id="_documentation">\r
214 <title>Documentation</title>\r
215 <simpara>Documentation by Martin Langhoff &lt;<ulink url="mailto:martin@catalyst.net.nz">martin@catalyst.net.nz</ulink>&gt; and others.</simpara>\r
216 </simplesect>\r
217 <simplesect id="_git">\r
218 <title>GIT</title>\r
219 <simpara>Part of the <xref linkend="git(1)"/> suite</simpara>\r
220 </simplesect>\r
221 </article>\r