blob: d80be5c33cb5218fe802aea59d873a876a82b9bb [file] [log] [blame]
Junio C Hamano3bd66e92009-04-18 06:17:561<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
2 "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
3<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
4<head>
5<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
6<meta name="generator" content="AsciiDoc 8.2.5" />
7<style type="text/css">
8/* Debug borders */
9p, li, dt, dd, div, pre, h1, h2, h3, h4, h5, h6 {
10/*
11 border: 1px solid red;
12*/
13}
14
15body {
16 margin: 1em 5% 1em 5%;
17}
18
19a {
20 color: blue;
21 text-decoration: underline;
22}
23a:visited {
24 color: fuchsia;
25}
26
27em {
28 font-style: italic;
29}
30
31strong {
32 font-weight: bold;
33}
34
35tt {
36 color: navy;
37}
38
39h1, h2, h3, h4, h5, h6 {
40 color: #527bbd;
41 font-family: sans-serif;
42 margin-top: 1.2em;
43 margin-bottom: 0.5em;
44 line-height: 1.3;
45}
46
47h1, h2, h3 {
48 border-bottom: 2px solid silver;
49}
50h2 {
51 padding-top: 0.5em;
52}
53h3 {
54 float: left;
55}
56h3 + * {
57 clear: left;
58}
59
60div.sectionbody {
61 font-family: serif;
62 margin-left: 0;
63}
64
65hr {
66 border: 1px solid silver;
67}
68
69p {
70 margin-top: 0.5em;
71 margin-bottom: 0.5em;
72}
73
74pre {
75 padding: 0;
76 margin: 0;
77}
78
79span#author {
80 color: #527bbd;
81 font-family: sans-serif;
82 font-weight: bold;
83 font-size: 1.1em;
84}
85span#email {
86}
87span#revision {
88 font-family: sans-serif;
89}
90
91div#footer {
92 font-family: sans-serif;
93 font-size: small;
94 border-top: 2px solid silver;
95 padding-top: 0.5em;
96 margin-top: 4.0em;
97}
98div#footer-text {
99 float: left;
100 padding-bottom: 0.5em;
101}
102div#footer-badges {
103 float: right;
104 padding-bottom: 0.5em;
105}
106
107div#preamble,
108div.tableblock, div.imageblock, div.exampleblock, div.verseblock,
109div.quoteblock, div.literalblock, div.listingblock, div.sidebarblock,
110div.admonitionblock {
111 margin-right: 10%;
112 margin-top: 1.5em;
113 margin-bottom: 1.5em;
114}
115div.admonitionblock {
116 margin-top: 2.5em;
117 margin-bottom: 2.5em;
118}
119
120div.content { /* Block element content. */
121 padding: 0;
122}
123
124/* Block element titles. */
125div.title, caption.title {
126 font-family: sans-serif;
127 font-weight: bold;
128 text-align: left;
129 margin-top: 1.0em;
130 margin-bottom: 0.5em;
131}
132div.title + * {
133 margin-top: 0;
134}
135
136td div.title:first-child {
137 margin-top: 0.0em;
138}
139div.content div.title:first-child {
140 margin-top: 0.0em;
141}
142div.content + div.title {
143 margin-top: 0.0em;
144}
145
146div.sidebarblock > div.content {
147 background: #ffffee;
148 border: 1px solid silver;
149 padding: 0.5em;
150}
151
152div.listingblock {
153 margin-right: 0%;
154}
155div.listingblock > div.content {
156 border: 1px solid silver;
157 background: #f4f4f4;
158 padding: 0.5em;
159}
160
161div.quoteblock > div.content {
162 padding-left: 2.0em;
163}
164
165div.attribution {
166 text-align: right;
167}
168div.verseblock + div.attribution {
169 text-align: left;
170}
171
172div.admonitionblock .icon {
173 vertical-align: top;
174 font-size: 1.1em;
175 font-weight: bold;
176 text-decoration: underline;
177 color: #527bbd;
178 padding-right: 0.5em;
179}
180div.admonitionblock td.content {
181 padding-left: 0.5em;
182 border-left: 2px solid silver;
183}
184
185div.exampleblock > div.content {
186 border-left: 2px solid silver;
187 padding: 0.5em;
188}
189
190div.verseblock div.content {
191 white-space: pre;
192}
193
194div.imageblock div.content { padding-left: 0; }
195div.imageblock img { border: 1px solid silver; }
196span.image img { border-style: none; }
197
198dl {
199 margin-top: 0.8em;
200 margin-bottom: 0.8em;
201}
202dt {
203 margin-top: 0.5em;
204 margin-bottom: 0;
205 font-style: italic;
206}
207dd > *:first-child {
208 margin-top: 0;
209}
210
211ul, ol {
212 list-style-position: outside;
213}
214div.olist2 ol {
215 list-style-type: lower-alpha;
216}
217
218div.tableblock > table {
219 border: 3px solid #527bbd;
220}
221thead {
222 font-family: sans-serif;
223 font-weight: bold;
224}
225tfoot {
226 font-weight: bold;
227}
228
229div.hlist {
230 margin-top: 0.8em;
231 margin-bottom: 0.8em;
232}
233div.hlist td {
234 padding-bottom: 5px;
235}
236td.hlist1 {
237 vertical-align: top;
238 font-style: italic;
239 padding-right: 0.8em;
240}
241td.hlist2 {
242 vertical-align: top;
243}
244
245@media print {
246 div#footer-badges { display: none; }
247}
248
249div#toctitle {
250 color: #527bbd;
251 font-family: sans-serif;
252 font-size: 1.1em;
253 font-weight: bold;
254 margin-top: 1.0em;
255 margin-bottom: 0.1em;
256}
257
258div.toclevel1, div.toclevel2, div.toclevel3, div.toclevel4 {
259 margin-top: 0;
260 margin-bottom: 0;
261}
262div.toclevel2 {
263 margin-left: 2em;
264 font-size: 0.9em;
265}
266div.toclevel3 {
267 margin-left: 4em;
268 font-size: 0.9em;
269}
270div.toclevel4 {
271 margin-left: 6em;
272 font-size: 0.9em;
273}
274include1::./stylesheets/xhtml11-manpage.css[]
275/* Workarounds for IE6's broken and incomplete CSS2. */
276
277div.sidebar-content {
278 background: #ffffee;
279 border: 1px solid silver;
280 padding: 0.5em;
281}
282div.sidebar-title, div.image-title {
283 font-family: sans-serif;
284 font-weight: bold;
285 margin-top: 0.0em;
286 margin-bottom: 0.5em;
287}
288
289div.listingblock div.content {
290 border: 1px solid silver;
291 background: #f4f4f4;
292 padding: 0.5em;
293}
294
295div.quoteblock-content {
296 padding-left: 2.0em;
297}
298
299div.exampleblock-content {
300 border-left: 2px solid silver;
301 padding-left: 0.5em;
302}
303
304/* IE6 sets dynamically generated links as visited. */
305div#toc a:visited { color: blue; }
306</style>
307<title>git-difftool(1)</title>
308</head>
309<body>
310<div id="header">
311<h1>
312git-difftool(1) Manual Page
313</h1>
314<h2>NAME</h2>
315<div class="sectionbody">
316<p>git-difftool -
317 Show changes using common diff tools
318</p>
319</div>
320</div>
321<h2>SYNOPSIS</h2>
322<div class="sectionbody">
323<div class="para"><p><em>git difftool</em> [--tool=&lt;tool&gt;] [-y|--no-prompt|--prompt] [&lt;<em>git diff</em> options&gt;]</p></div>
324</div>
325<h2 id="_description">DESCRIPTION</h2>
326<div class="sectionbody">
327<div class="para"><p><em>git-difftool</em> is a git command that allows you to compare and edit files
328between revisions using common diff tools. <em>git difftool</em> is a frontend
329to <em>git-diff</em> and accepts the same options and arguments.</p></div>
330</div>
331<h2 id="_options">OPTIONS</h2>
332<div class="sectionbody">
333<div class="vlist"><dl>
334<dt>
335-y
336</dt>
337<dt>
338--no-prompt
339</dt>
340<dd>
341<p>
342 Do not prompt before launching a diff tool.
343</p>
344</dd>
345<dt>
346--prompt
347</dt>
348<dd>
349<p>
350 Prompt before each invocation of the diff tool.
351 This is the default behaviour; the option is provided to
352 override any configuration settings.
353</p>
354</dd>
355<dt>
356-t &lt;tool&gt;
357</dt>
358<dt>
359--tool=&lt;tool&gt;
360</dt>
361<dd>
362<p>
363 Use the diff tool specified by &lt;tool&gt;.
364 Valid merge tools are:
365 kdiff3, kompare, tkdiff, meld, xxdiff, emerge, vimdiff, gvimdiff,
Junio C Hamano25e7ba62009-06-14 01:03:22366 ecmerge, diffuse, opendiff and araxis.
Junio C Hamano3bd66e92009-04-18 06:17:56367</p>
368<div class="para"><p>If a diff tool is not specified, <em>git-difftool</em>
369will use the configuration variable <tt>diff.tool</tt>. If the
370configuration variable <tt>diff.tool</tt> is not set, <em>git-difftool</em>
371will pick a suitable default.</p></div>
372<div class="para"><p>You can explicitly provide a full path to the tool by setting the
373configuration variable <tt>difftool.&lt;tool&gt;.path</tt>. For example, you
374can configure the absolute path to kdiff3 by setting
375<tt>difftool.kdiff3.path</tt>. Otherwise, <em>git-difftool</em> assumes the
376tool is available in PATH.</p></div>
377<div class="para"><p>Instead of running one of the known diff tools,
378<em>git-difftool</em> can be customized to run an alternative program
379by specifying the command line to invoke in a configuration
380variable <tt>difftool.&lt;tool&gt;.cmd</tt>.</p></div>
381<div class="para"><p>When <em>git-difftool</em> is invoked with this tool (either through the
382<tt>-t</tt> or <tt>--tool</tt> option or the <tt>diff.tool</tt> configuration variable)
383the configured command line will be invoked with the following
384variables available: <tt>$LOCAL</tt> is set to the name of the temporary
385file containing the contents of the diff pre-image and <tt>$REMOTE</tt>
386is set to the name of the temporary file containing the contents
387of the diff post-image. <tt>$BASE</tt> is provided for compatibility
388with custom merge tool commands and has the same value as <tt>$LOCAL</tt>.</p></div>
389</dd>
390</dl></div>
391<div class="para"><p>See <a href="git-diff.html">git-diff(1)</a> for the full list of supported options.</p></div>
392</div>
393<h2 id="_config_variables">CONFIG VARIABLES</h2>
394<div class="sectionbody">
395<div class="para"><p><em>git-difftool</em> falls back to <em>git-mergetool</em> config variables when the
396difftool equivalents have not been defined.</p></div>
397<div class="vlist"><dl>
398<dt>
399diff.tool
400</dt>
401<dd>
402<p>
403 The default diff tool to use.
404</p>
405</dd>
406<dt>
407difftool.&lt;tool&gt;.path
408</dt>
409<dd>
410<p>
411 Override the path for the given tool. This is useful in case
412 your tool is not in the PATH.
413</p>
414</dd>
415<dt>
416difftool.&lt;tool&gt;.cmd
417</dt>
418<dd>
419<p>
420 Specify the command to invoke the specified diff tool.
421</p>
422<div class="para"><p>See the <tt>--tool=&lt;tool&gt;</tt> option above for more details.</p></div>
423</dd>
424<dt>
425difftool.prompt
426</dt>
427<dd>
428<p>
429 Prompt before each invocation of the diff tool.
430</p>
431</dd>
432</dl></div>
433</div>
434<h2 id="_see_also">SEE ALSO</h2>
435<div class="sectionbody">
436<div class="vlist"><dl>
437<dt>
438<a href="git-diff.html">git-diff(1)</a>
439</dt>
440<dd>
441<p>
442 Show changes between commits, commit and working tree, etc
443</p>
444</dd>
445<dt>
446<a href="git-mergetool.html">git-mergetool(1)</a>
447</dt>
448<dd>
449<p>
450 Run merge conflict resolution tools to resolve merge conflicts
451</p>
452</dd>
453<dt>
454<a href="git-config.html">git-config(1)</a>
455</dt>
456<dd>
457<p>
458 Get and set repository or global options
459</p>
460</dd>
461</dl></div>
462</div>
463<h2 id="_author">AUTHOR</h2>
464<div class="sectionbody">
465<div class="para"><p>Written by David Aguilar &lt;davvid@gmail.com&gt;.</p></div>
466</div>
467<h2 id="_documentation">Documentation</h2>
468<div class="sectionbody">
469<div class="para"><p>Documentation by David Aguilar and the git-list &lt;git@vger.kernel.org&gt;.</p></div>
470</div>
471<h2 id="_git">GIT</h2>
472<div class="sectionbody">
473<div class="para"><p>Part of the <a href="git.html">git(1)</a> suite</p></div>
474</div>
475<div id="footer">
476<div id="footer-text">
Junio C Hamano73d812c2009-07-01 02:33:06477Last updated 2009-07-01 02:30:48 UTC
Junio C Hamano3bd66e92009-04-18 06:17:56478</div>
479</div>
480</body>
481</html>