blob: 8a4a8ebf6553cda16dcf29b51c8e5e105aa8ea9d [file] [log] [blame]
Junio C Hamano1a4e8412005-12-27 08:17:231<!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>
Junio C Hamano9d971152012-12-19 00:43:115<meta http-equiv="Content-Type" content="application/xhtml+xml; charset=UTF-8" />
Junio C Hamano61525f92014-01-17 22:46:496<meta name="generator" content="AsciiDoc 8.6.6" />
Junio C Hamano68cf15a2010-11-06 01:01:597<title>gitk(1)</title>
Junio C Hamano1a4e8412005-12-27 08:17:238<style type="text/css">
Junio C Hamano9d971152012-12-19 00:43:119/* Shared CSS for AsciiDoc xhtml11 and html5 backends */
10
11/* Default font. */
12body {
13 font-family: Georgia,serif;
14}
15
16/* Title font. */
17h1, h2, h3, h4, h5, h6,
18div.title, caption.title,
19thead, p.table.header,
20#toctitle,
21#author, #revnumber, #revdate, #revremark,
22#footer {
23 font-family: Arial,Helvetica,sans-serif;
Junio C Hamano1a4e8412005-12-27 08:17:2324}
25
26body {
27 margin: 1em 5% 1em 5%;
28}
29
Junio C Hamanoba4b9282008-07-06 05:20:3130a {
31 color: blue;
32 text-decoration: underline;
33}
34a:visited {
35 color: fuchsia;
36}
Junio C Hamano1a4e8412005-12-27 08:17:2337
38em {
39 font-style: italic;
Junio C Hamano68cf15a2010-11-06 01:01:5940 color: navy;
Junio C Hamano1a4e8412005-12-27 08:17:2341}
42
43strong {
44 font-weight: bold;
Junio C Hamano68cf15a2010-11-06 01:01:5945 color: #083194;
Junio C Hamano1a4e8412005-12-27 08:17:2346}
47
Junio C Hamano1a4e8412005-12-27 08:17:2348h1, h2, h3, h4, h5, h6 {
49 color: #527bbd;
Junio C Hamano1a4e8412005-12-27 08:17:2350 margin-top: 1.2em;
51 margin-bottom: 0.5em;
52 line-height: 1.3;
53}
54
Junio C Hamanoba4b9282008-07-06 05:20:3155h1, h2, h3 {
Junio C Hamano1a4e8412005-12-27 08:17:2356 border-bottom: 2px solid silver;
57}
58h2 {
Junio C Hamano1a4e8412005-12-27 08:17:2359 padding-top: 0.5em;
60}
Junio C Hamanoba4b9282008-07-06 05:20:3161h3 {
62 float: left;
63}
64h3 + * {
65 clear: left;
66}
Junio C Hamano9d971152012-12-19 00:43:1167h5 {
68 font-size: 1.0em;
69}
Junio C Hamano1a4e8412005-12-27 08:17:2370
71div.sectionbody {
Junio C Hamano1a4e8412005-12-27 08:17:2372 margin-left: 0;
73}
74
75hr {
76 border: 1px solid silver;
77}
78
79p {
80 margin-top: 0.5em;
81 margin-bottom: 0.5em;
82}
83
Junio C Hamano68cf15a2010-11-06 01:01:5984ul, ol, li > p {
85 margin-top: 0;
86}
Junio C Hamano9d971152012-12-19 00:43:1187ul > li { color: #aaa; }
88ul > li > * { color: black; }
Junio C Hamano68cf15a2010-11-06 01:01:5989
Junio C Hamano61525f92014-01-17 22:46:4990pre {
Junio C Hamano1a4e8412005-12-27 08:17:2391 padding: 0;
92 margin: 0;
93}
94
Junio C Hamano9d971152012-12-19 00:43:1195#author {
Junio C Hamano1a4e8412005-12-27 08:17:2396 color: #527bbd;
Junio C Hamano1a4e8412005-12-27 08:17:2397 font-weight: bold;
Junio C Hamanoba4b9282008-07-06 05:20:3198 font-size: 1.1em;
Junio C Hamano1a4e8412005-12-27 08:17:2399}
Junio C Hamano9d971152012-12-19 00:43:11100#email {
Junio C Hamano1a4e8412005-12-27 08:17:23101}
Junio C Hamano9d971152012-12-19 00:43:11102#revnumber, #revdate, #revremark {
Junio C Hamano1a4e8412005-12-27 08:17:23103}
104
Junio C Hamano9d971152012-12-19 00:43:11105#footer {
Junio C Hamano1a4e8412005-12-27 08:17:23106 font-size: small;
107 border-top: 2px solid silver;
108 padding-top: 0.5em;
109 margin-top: 4.0em;
110}
Junio C Hamano9d971152012-12-19 00:43:11111#footer-text {
Junio C Hamano1a4e8412005-12-27 08:17:23112 float: left;
113 padding-bottom: 0.5em;
114}
Junio C Hamano9d971152012-12-19 00:43:11115#footer-badges {
Junio C Hamano1a4e8412005-12-27 08:17:23116 float: right;
117 padding-bottom: 0.5em;
118}
119
Junio C Hamano9d971152012-12-19 00:43:11120#preamble {
Junio C Hamano68cf15a2010-11-06 01:01:59121 margin-top: 1.5em;
122 margin-bottom: 1.5em;
123}
Junio C Hamano9d971152012-12-19 00:43:11124div.imageblock, div.exampleblock, div.verseblock,
Junio C Hamano1a4e8412005-12-27 08:17:23125div.quoteblock, div.literalblock, div.listingblock, div.sidebarblock,
126div.admonitionblock {
Junio C Hamano7bd050f2011-09-22 06:32:22127 margin-top: 1.0em;
Junio C Hamano1a4e8412005-12-27 08:17:23128 margin-bottom: 1.5em;
129}
130div.admonitionblock {
Junio C Hamano7bd050f2011-09-22 06:32:22131 margin-top: 2.0em;
132 margin-bottom: 2.0em;
133 margin-right: 10%;
134 color: #606060;
Junio C Hamano1a4e8412005-12-27 08:17:23135}
136
137div.content { /* Block element content. */
138 padding: 0;
139}
140
141/* Block element titles. */
142div.title, caption.title {
Junio C Hamano68cf15a2010-11-06 01:01:59143 color: #527bbd;
Junio C Hamano1a4e8412005-12-27 08:17:23144 font-weight: bold;
145 text-align: left;
146 margin-top: 1.0em;
147 margin-bottom: 0.5em;
148}
149div.title + * {
150 margin-top: 0;
151}
152
153td div.title:first-child {
154 margin-top: 0.0em;
155}
156div.content div.title:first-child {
157 margin-top: 0.0em;
158}
159div.content + div.title {
160 margin-top: 0.0em;
161}
162
163div.sidebarblock > div.content {
164 background: #ffffee;
Junio C Hamano9d971152012-12-19 00:43:11165 border: 1px solid #dddddd;
166 border-left: 4px solid #f0f0f0;
Junio C Hamano1a4e8412005-12-27 08:17:23167 padding: 0.5em;
168}
169
170div.listingblock > div.content {
Junio C Hamano9d971152012-12-19 00:43:11171 border: 1px solid #dddddd;
172 border-left: 5px solid #f0f0f0;
173 background: #f8f8f8;
Junio C Hamano1a4e8412005-12-27 08:17:23174 padding: 0.5em;
175}
176
Junio C Hamano7bd050f2011-09-22 06:32:22177div.quoteblock, div.verseblock {
178 padding-left: 1.0em;
179 margin-left: 1.0em;
Junio C Hamano68cf15a2010-11-06 01:01:59180 margin-right: 10%;
Junio C Hamano9d971152012-12-19 00:43:11181 border-left: 5px solid #f0f0f0;
182 color: #888;
Junio C Hamano1a4e8412005-12-27 08:17:23183}
Junio C Hamano7bd050f2011-09-22 06:32:22184
Junio C Hamano68cf15a2010-11-06 01:01:59185div.quoteblock > div.attribution {
186 padding-top: 0.5em;
Junio C Hamano1a4e8412005-12-27 08:17:23187 text-align: right;
188}
Junio C Hamano68cf15a2010-11-06 01:01:59189
Junio C Hamano9d971152012-12-19 00:43:11190div.verseblock > pre.content {
191 font-family: inherit;
192 font-size: inherit;
Junio C Hamano68cf15a2010-11-06 01:01:59193}
194div.verseblock > div.attribution {
195 padding-top: 0.75em;
196 text-align: left;
197}
198/* DEPRECATED: Pre version 8.2.7 verse style literal block. */
Junio C Hamanoba4b9282008-07-06 05:20:31199div.verseblock + div.attribution {
200 text-align: left;
201}
Junio C Hamano1a4e8412005-12-27 08:17:23202
203div.admonitionblock .icon {
204 vertical-align: top;
205 font-size: 1.1em;
206 font-weight: bold;
207 text-decoration: underline;
208 color: #527bbd;
209 padding-right: 0.5em;
210}
211div.admonitionblock td.content {
212 padding-left: 0.5em;
Junio C Hamano7bd050f2011-09-22 06:32:22213 border-left: 3px solid #dddddd;
Junio C Hamano1a4e8412005-12-27 08:17:23214}
215
216div.exampleblock > div.content {
Junio C Hamano7bd050f2011-09-22 06:32:22217 border-left: 3px solid #dddddd;
218 padding-left: 0.5em;
Junio C Hamano1a4e8412005-12-27 08:17:23219}
220
Junio C Hamano1a4e8412005-12-27 08:17:23221div.imageblock div.content { padding-left: 0; }
Junio C Hamano1a4e8412005-12-27 08:17:23222span.image img { border-style: none; }
Junio C Hamano68cf15a2010-11-06 01:01:59223a.image:visited { color: white; }
Junio C Hamano1a4e8412005-12-27 08:17:23224
225dl {
226 margin-top: 0.8em;
227 margin-bottom: 0.8em;
228}
229dt {
230 margin-top: 0.5em;
231 margin-bottom: 0;
Junio C Hamano68cf15a2010-11-06 01:01:59232 font-style: normal;
233 color: navy;
Junio C Hamano1a4e8412005-12-27 08:17:23234}
235dd > *:first-child {
Junio C Hamano68cf15a2010-11-06 01:01:59236 margin-top: 0.1em;
Junio C Hamano1a4e8412005-12-27 08:17:23237}
238
239ul, ol {
240 list-style-position: outside;
241}
Junio C Hamano68cf15a2010-11-06 01:01:59242ol.arabic {
243 list-style-type: decimal;
244}
245ol.loweralpha {
Junio C Hamano1a4e8412005-12-27 08:17:23246 list-style-type: lower-alpha;
247}
Junio C Hamano68cf15a2010-11-06 01:01:59248ol.upperalpha {
249 list-style-type: upper-alpha;
250}
251ol.lowerroman {
252 list-style-type: lower-roman;
253}
254ol.upperroman {
255 list-style-type: upper-roman;
256}
257
258div.compact ul, div.compact ol,
259div.compact p, div.compact p,
260div.compact div, div.compact div {
261 margin-top: 0.1em;
262 margin-bottom: 0.1em;
263}
Junio C Hamano1a4e8412005-12-27 08:17:23264
Junio C Hamano1a4e8412005-12-27 08:17:23265tfoot {
266 font-weight: bold;
267}
Junio C Hamano68cf15a2010-11-06 01:01:59268td > div.verse {
269 white-space: pre;
270}
Junio C Hamano68cf15a2010-11-06 01:01:59271
272div.hdlist {
Junio C Hamano1a4e8412005-12-27 08:17:23273 margin-top: 0.8em;
274 margin-bottom: 0.8em;
275}
Junio C Hamano68cf15a2010-11-06 01:01:59276div.hdlist tr {
277 padding-bottom: 15px;
Junio C Hamanoba4b9282008-07-06 05:20:31278}
Junio C Hamano68cf15a2010-11-06 01:01:59279dt.hdlist1.strong, td.hdlist1.strong {
280 font-weight: bold;
281}
282td.hdlist1 {
Junio C Hamano1a4e8412005-12-27 08:17:23283 vertical-align: top;
Junio C Hamano68cf15a2010-11-06 01:01:59284 font-style: normal;
Junio C Hamano1a4e8412005-12-27 08:17:23285 padding-right: 0.8em;
Junio C Hamano68cf15a2010-11-06 01:01:59286 color: navy;
Junio C Hamano1a4e8412005-12-27 08:17:23287}
Junio C Hamano68cf15a2010-11-06 01:01:59288td.hdlist2 {
Junio C Hamano1a4e8412005-12-27 08:17:23289 vertical-align: top;
290}
Junio C Hamano68cf15a2010-11-06 01:01:59291div.hdlist.compact tr {
292 margin: 0;
293 padding-bottom: 0;
294}
295
296.comment {
297 background: yellow;
298}
Junio C Hamano1a4e8412005-12-27 08:17:23299
Junio C Hamano7bd050f2011-09-22 06:32:22300.footnote, .footnoteref {
301 font-size: 0.8em;
302}
303
304span.footnote, span.footnoteref {
305 vertical-align: super;
306}
307
308#footnotes {
309 margin: 20px 0 20px 0;
310 padding: 7px 0 0 0;
311}
312
313#footnotes div.footnote {
314 margin: 0 0 5px 0;
315}
316
317#footnotes hr {
318 border: none;
319 border-top: 1px solid silver;
320 height: 1px;
321 text-align: left;
322 margin-left: 0;
323 width: 20%;
324 min-width: 100px;
325}
326
Junio C Hamano9d971152012-12-19 00:43:11327div.colist td {
328 padding-right: 0.5em;
329 padding-bottom: 0.3em;
330 vertical-align: top;
331}
332div.colist td img {
333 margin-top: 0.3em;
Junio C Hamano1a4e8412005-12-27 08:17:23334}
Junio C Hamanoba4b9282008-07-06 05:20:31335
Junio C Hamano9d971152012-12-19 00:43:11336@media print {
337 #footer-badges { display: none; }
338}
339
340#toc {
Junio C Hamano7bd050f2011-09-22 06:32:22341 margin-bottom: 2.5em;
342}
343
Junio C Hamano9d971152012-12-19 00:43:11344#toctitle {
Junio C Hamanoba4b9282008-07-06 05:20:31345 color: #527bbd;
Junio C Hamanoba4b9282008-07-06 05:20:31346 font-size: 1.1em;
347 font-weight: bold;
348 margin-top: 1.0em;
349 margin-bottom: 0.1em;
350}
351
Junio C Hamano61525f92014-01-17 22:46:49352div.toclevel1, div.toclevel2, div.toclevel3, div.toclevel4 {
Junio C Hamanoba4b9282008-07-06 05:20:31353 margin-top: 0;
354 margin-bottom: 0;
355}
356div.toclevel2 {
357 margin-left: 2em;
358 font-size: 0.9em;
359}
360div.toclevel3 {
361 margin-left: 4em;
362 font-size: 0.9em;
363}
364div.toclevel4 {
365 margin-left: 6em;
366 font-size: 0.9em;
367}
Junio C Hamano9d971152012-12-19 00:43:11368
369span.aqua { color: aqua; }
370span.black { color: black; }
371span.blue { color: blue; }
372span.fuchsia { color: fuchsia; }
373span.gray { color: gray; }
374span.green { color: green; }
375span.lime { color: lime; }
376span.maroon { color: maroon; }
377span.navy { color: navy; }
378span.olive { color: olive; }
379span.purple { color: purple; }
380span.red { color: red; }
381span.silver { color: silver; }
382span.teal { color: teal; }
383span.white { color: white; }
384span.yellow { color: yellow; }
385
386span.aqua-background { background: aqua; }
387span.black-background { background: black; }
388span.blue-background { background: blue; }
389span.fuchsia-background { background: fuchsia; }
390span.gray-background { background: gray; }
391span.green-background { background: green; }
392span.lime-background { background: lime; }
393span.maroon-background { background: maroon; }
394span.navy-background { background: navy; }
395span.olive-background { background: olive; }
396span.purple-background { background: purple; }
397span.red-background { background: red; }
398span.silver-background { background: silver; }
399span.teal-background { background: teal; }
400span.white-background { background: white; }
401span.yellow-background { background: yellow; }
402
403span.big { font-size: 2em; }
404span.small { font-size: 0.6em; }
405
406span.underline { text-decoration: underline; }
407span.overline { text-decoration: overline; }
408span.line-through { text-decoration: line-through; }
409
Junio C Hamano9d971152012-12-19 00:43:11410
411/*
412 * xhtml11 specific
413 *
414 * */
415
Junio C Hamano61525f92014-01-17 22:46:49416tt {
417 font-family: monospace;
418 font-size: inherit;
419 color: navy;
420}
421
Junio C Hamano9d971152012-12-19 00:43:11422div.tableblock {
423 margin-top: 1.0em;
424 margin-bottom: 1.5em;
425}
426div.tableblock > table {
427 border: 3px solid #527bbd;
428}
429thead, p.table.header {
430 font-weight: bold;
431 color: #527bbd;
432}
433p.table {
434 margin-top: 0;
435}
436/* Because the table frame attribute is overriden by CSS in most browsers. */
437div.tableblock > table[frame="void"] {
438 border-style: none;
439}
440div.tableblock > table[frame="hsides"] {
441 border-left-style: none;
442 border-right-style: none;
443}
444div.tableblock > table[frame="vsides"] {
445 border-top-style: none;
446 border-bottom-style: none;
447}
448
449
450/*
451 * html5 specific
452 *
453 * */
454
Junio C Hamano61525f92014-01-17 22:46:49455.monospaced {
456 font-family: monospace;
457 font-size: inherit;
458 color: navy;
459}
460
Junio C Hamano9d971152012-12-19 00:43:11461table.tableblock {
462 margin-top: 1.0em;
463 margin-bottom: 1.5em;
464}
465thead, p.tableblock.header {
466 font-weight: bold;
467 color: #527bbd;
468}
469p.tableblock {
470 margin-top: 0;
471}
472table.tableblock {
473 border-width: 3px;
474 border-spacing: 0px;
475 border-style: solid;
476 border-color: #527bbd;
477 border-collapse: collapse;
478}
479th.tableblock, td.tableblock {
480 border-width: 1px;
481 padding: 4px;
482 border-style: solid;
483 border-color: #527bbd;
484}
485
486table.tableblock.frame-topbot {
487 border-left-style: hidden;
488 border-right-style: hidden;
489}
490table.tableblock.frame-sides {
491 border-top-style: hidden;
492 border-bottom-style: hidden;
493}
494table.tableblock.frame-none {
495 border-style: hidden;
496}
497
498th.tableblock.halign-left, td.tableblock.halign-left {
499 text-align: left;
500}
501th.tableblock.halign-center, td.tableblock.halign-center {
502 text-align: center;
503}
504th.tableblock.halign-right, td.tableblock.halign-right {
505 text-align: right;
506}
507
508th.tableblock.valign-top, td.tableblock.valign-top {
509 vertical-align: top;
510}
511th.tableblock.valign-middle, td.tableblock.valign-middle {
512 vertical-align: middle;
513}
514th.tableblock.valign-bottom, td.tableblock.valign-bottom {
515 vertical-align: bottom;
516}
517
518
519/*
520 * manpage specific
521 *
522 * */
523
524body.manpage h1 {
Junio C Hamano68cf15a2010-11-06 01:01:59525 padding-top: 0.5em;
526 padding-bottom: 0.5em;
527 border-top: 2px solid silver;
528 border-bottom: 2px solid silver;
529}
Junio C Hamano9d971152012-12-19 00:43:11530body.manpage h2 {
Junio C Hamano68cf15a2010-11-06 01:01:59531 border-style: none;
532}
Junio C Hamano9d971152012-12-19 00:43:11533body.manpage div.sectionbody {
534 margin-left: 3em;
Junio C Hamano68cf15a2010-11-06 01:01:59535}
536
537@media print {
Junio C Hamano9d971152012-12-19 00:43:11538 body.manpage div#toc { display: none; }
Junio C Hamano68cf15a2010-11-06 01:01:59539}
Junio C Hamano1a4e8412005-12-27 08:17:23540</style>
Junio C Hamano7bd050f2011-09-22 06:32:22541<script type="text/javascript">
542/*<![CDATA[*/
Junio C Hamano7bd050f2011-09-22 06:32:22543var asciidoc = { // Namespace.
544
545/////////////////////////////////////////////////////////////////////
546// Table Of Contents generator
547/////////////////////////////////////////////////////////////////////
548
549/* Author: Mihai Bazon, September 2002
550 * http://students.infoiasi.ro/~mishoo
551 *
552 * Table Of Content generator
553 * Version: 0.4
554 *
555 * Feel free to use this script under the terms of the GNU General Public
556 * License, as long as you do not remove or alter this notice.
557 */
558
559 /* modified by Troy D. Hanson, September 2006. License: GPL */
560 /* modified by Stuart Rackham, 2006, 2009. License: GPL */
561
562// toclevels = 1..4.
563toc: function (toclevels) {
564
565 function getText(el) {
566 var text = "";
567 for (var i = el.firstChild; i != null; i = i.nextSibling) {
568 if (i.nodeType == 3 /* Node.TEXT_NODE */) // IE doesn't speak constants.
569 text += i.data;
570 else if (i.firstChild != null)
571 text += getText(i);
572 }
573 return text;
574 }
575
576 function TocEntry(el, text, toclevel) {
577 this.element = el;
578 this.text = text;
579 this.toclevel = toclevel;
580 }
581
582 function tocEntries(el, toclevels) {
583 var result = new Array;
Junio C Hamano61525f92014-01-17 22:46:49584 var re = new RegExp('[hH]([2-'+(toclevels+1)+'])');
Junio C Hamano7bd050f2011-09-22 06:32:22585 // Function that scans the DOM tree for header elements (the DOM2
586 // nodeIterator API would be a better technique but not supported by all
587 // browsers).
588 var iterate = function (el) {
589 for (var i = el.firstChild; i != null; i = i.nextSibling) {
590 if (i.nodeType == 1 /* Node.ELEMENT_NODE */) {
591 var mo = re.exec(i.tagName);
592 if (mo && (i.getAttribute("class") || i.getAttribute("className")) != "float") {
593 result[result.length] = new TocEntry(i, getText(i), mo[1]-1);
594 }
595 iterate(i);
596 }
597 }
598 }
599 iterate(el);
600 return result;
601 }
602
603 var toc = document.getElementById("toc");
Junio C Hamano9d971152012-12-19 00:43:11604 if (!toc) {
605 return;
606 }
607
608 // Delete existing TOC entries in case we're reloading the TOC.
609 var tocEntriesToRemove = [];
610 var i;
611 for (i = 0; i < toc.childNodes.length; i++) {
612 var entry = toc.childNodes[i];
Junio C Hamano61525f92014-01-17 22:46:49613 if (entry.nodeName == 'div'
Junio C Hamano9d971152012-12-19 00:43:11614 && entry.getAttribute("class")
615 && entry.getAttribute("class").match(/^toclevel/))
616 tocEntriesToRemove.push(entry);
617 }
618 for (i = 0; i < tocEntriesToRemove.length; i++) {
619 toc.removeChild(tocEntriesToRemove[i]);
620 }
621
622 // Rebuild TOC entries.
Junio C Hamano7bd050f2011-09-22 06:32:22623 var entries = tocEntries(document.getElementById("content"), toclevels);
624 for (var i = 0; i < entries.length; ++i) {
625 var entry = entries[i];
626 if (entry.element.id == "")
627 entry.element.id = "_toc_" + i;
628 var a = document.createElement("a");
629 a.href = "#" + entry.element.id;
630 a.appendChild(document.createTextNode(entry.text));
631 var div = document.createElement("div");
632 div.appendChild(a);
633 div.className = "toclevel" + entry.toclevel;
634 toc.appendChild(div);
635 }
636 if (entries.length == 0)
637 toc.parentNode.removeChild(toc);
638},
639
640
641/////////////////////////////////////////////////////////////////////
642// Footnotes generator
643/////////////////////////////////////////////////////////////////////
644
645/* Based on footnote generation code from:
646 * http://www.brandspankingnew.net/archive/2005/07/format_footnote.html
647 */
648
649footnotes: function () {
Junio C Hamano9d971152012-12-19 00:43:11650 // Delete existing footnote entries in case we're reloading the footnodes.
651 var i;
Junio C Hamano7bd050f2011-09-22 06:32:22652 var noteholder = document.getElementById("footnotes");
Junio C Hamano9d971152012-12-19 00:43:11653 if (!noteholder) {
654 return;
655 }
656 var entriesToRemove = [];
657 for (i = 0; i < noteholder.childNodes.length; i++) {
658 var entry = noteholder.childNodes[i];
Junio C Hamano61525f92014-01-17 22:46:49659 if (entry.nodeName == 'div' && entry.getAttribute("class") == "footnote")
Junio C Hamano9d971152012-12-19 00:43:11660 entriesToRemove.push(entry);
661 }
662 for (i = 0; i < entriesToRemove.length; i++) {
663 noteholder.removeChild(entriesToRemove[i]);
664 }
665
666 // Rebuild footnote entries.
667 var cont = document.getElementById("content");
Junio C Hamano7bd050f2011-09-22 06:32:22668 var spans = cont.getElementsByTagName("span");
669 var refs = {};
670 var n = 0;
671 for (i=0; i<spans.length; i++) {
672 if (spans[i].className == "footnote") {
673 n++;
Junio C Hamano9d971152012-12-19 00:43:11674 var note = spans[i].getAttribute("data-note");
675 if (!note) {
676 // Use [\s\S] in place of . so multi-line matches work.
677 // Because JavaScript has no s (dotall) regex flag.
678 note = spans[i].innerHTML.match(/\s*\[([\s\S]*)]\s*/)[1];
679 spans[i].innerHTML =
680 "[<a id='_footnoteref_" + n + "' href='#_footnote_" + n +
681 "' title='View footnote' class='footnote'>" + n + "</a>]";
682 spans[i].setAttribute("data-note", note);
683 }
Junio C Hamano7bd050f2011-09-22 06:32:22684 noteholder.innerHTML +=
685 "<div class='footnote' id='_footnote_" + n + "'>" +
686 "<a href='#_footnoteref_" + n + "' title='Return to text'>" +
687 n + "</a>. " + note + "</div>";
Junio C Hamano7bd050f2011-09-22 06:32:22688 var id =spans[i].getAttribute("id");
689 if (id != null) refs["#"+id] = n;
690 }
691 }
692 if (n == 0)
693 noteholder.parentNode.removeChild(noteholder);
694 else {
695 // Process footnoterefs.
696 for (i=0; i<spans.length; i++) {
697 if (spans[i].className == "footnoteref") {
698 var href = spans[i].getElementsByTagName("a")[0].getAttribute("href");
699 href = href.match(/#.*/)[0]; // Because IE return full URL.
700 n = refs[href];
701 spans[i].innerHTML =
702 "[<a href='#_footnote_" + n +
703 "' title='View footnote' class='footnote'>" + n + "</a>]";
704 }
705 }
706 }
Junio C Hamano9d971152012-12-19 00:43:11707},
708
709install: function(toclevels) {
710 var timerId;
711
712 function reinstall() {
713 asciidoc.footnotes();
714 if (toclevels) {
715 asciidoc.toc(toclevels);
716 }
717 }
718
719 function reinstallAndRemoveTimer() {
720 clearInterval(timerId);
721 reinstall();
722 }
723
724 timerId = setInterval(reinstall, 500);
725 if (document.addEventListener)
726 document.addEventListener("DOMContentLoaded", reinstallAndRemoveTimer, false);
727 else
728 window.onload = reinstallAndRemoveTimer;
Junio C Hamano7bd050f2011-09-22 06:32:22729}
730
731}
Junio C Hamano9d971152012-12-19 00:43:11732asciidoc.install();
Junio C Hamano7bd050f2011-09-22 06:32:22733/*]]>*/
734</script>
Junio C Hamano1a4e8412005-12-27 08:17:23735</head>
Junio C Hamano9d971152012-12-19 00:43:11736<body class="manpage">
Junio C Hamano1a4e8412005-12-27 08:17:23737<div id="header">
738<h1>
739gitk(1) Manual Page
740</h1>
741<h2>NAME</h2>
742<div class="sectionbody">
743<p>gitk -
Junio C Hamano076ffcc2013-02-06 05:13:21744 The Git repository browser
Junio C Hamano1a4e8412005-12-27 08:17:23745</p>
746</div>
747</div>
Junio C Hamano7bd050f2011-09-22 06:32:22748<div id="content">
Junio C Hamano9d971152012-12-19 00:43:11749<div class="sect1">
Junio C Hamano68cf15a2010-11-06 01:01:59750<h2 id="_synopsis">SYNOPSIS</h2>
Junio C Hamano1a4e8412005-12-27 08:17:23751<div class="sectionbody">
Junio C Hamano15567bc2011-07-23 00:51:59752<div class="verseblock">
Junio C Hamanob1c58582013-10-30 21:55:00753<pre class="content"><em>gitk</em> [&lt;options&gt;] [&lt;revision range&gt;] [--] [&lt;path&gt;&#8230;]</pre>
Junio C Hamano9d971152012-12-19 00:43:11754<div class="attribution">
Junio C Hamano15567bc2011-07-23 00:51:59755</div></div>
Junio C Hamano1a4e8412005-12-27 08:17:23756</div>
Junio C Hamano9d971152012-12-19 00:43:11757</div>
758<div class="sect1">
Junio C Hamanoba4b9282008-07-06 05:20:31759<h2 id="_description">DESCRIPTION</h2>
Junio C Hamano1a4e8412005-12-27 08:17:23760<div class="sectionbody">
Junio C Hamano68cf15a2010-11-06 01:01:59761<div class="paragraph"><p>Displays changes in a repository or a selected set of commits. This includes
Junio C Hamano6b2cee12006-08-26 08:43:31762visualizing the commit graph, showing information related to each commit, and
Junio C Hamanoba4b9282008-07-06 05:20:31763the files in the trees of each revision.</p></div>
Junio C Hamano1a4e8412005-12-27 08:17:23764</div>
Junio C Hamano9d971152012-12-19 00:43:11765</div>
766<div class="sect1">
Junio C Hamanoba4b9282008-07-06 05:20:31767<h2 id="_options">OPTIONS</h2>
Junio C Hamano1a4e8412005-12-27 08:17:23768<div class="sectionbody">
Junio C Hamanob1c58582013-10-30 21:55:00769<div class="paragraph"><p>To control which revisions to show, gitk supports most options
770applicable to the <em>git rev-list</em> command. It also supports a few
771options applicable to the <em>git diff-*</em> commands to control how the
772changes each commit introduces are shown. Finally, it supports some
773gitk-specific options.</p></div>
774<div class="paragraph"><p>gitk generally only understands options with arguments in the
775<em>sticked</em> form (see <a href="gitcli.html">gitcli(7)</a>) due to limitations in the
776command line parser.</p></div>
777<div class="sect2">
778<h3 id="_rev_list_options_and_arguments">rev-list options and arguments</h3>
779<div class="paragraph"><p>This manual page describes only the most frequently used options. See
780<a href="git-rev-list.html">git-rev-list(1)</a> for a complete list.</p></div>
Junio C Hamano68cf15a2010-11-06 01:01:59781<div class="dlist"><dl>
782<dt class="hdlist1">
Junio C Hamanob1c58582013-10-30 21:55:00783--all
Junio C Hamano1a4e8412005-12-27 08:17:23784</dt>
785<dd>
786<p>
Junio C Hamanob1c58582013-10-30 21:55:00787 Show all refs (branches, tags, etc.).
788</p>
789</dd>
790<dt class="hdlist1">
791--branches[=&lt;pattern&gt;]
792</dt>
793<dt class="hdlist1">
794--tags[=&lt;pattern&gt;]
795</dt>
796<dt class="hdlist1">
797--remotes[=&lt;pattern&gt;]
798</dt>
799<dd>
800<p>
801 Pretend as if all the branches (tags, remote branches, resp.)
802 are listed on the command line as <em>&lt;commit&gt;</em>. If <em>&lt;pattern&gt;</em>
803 is given, limit refs to ones matching given shell glob. If
804 pattern lacks <em>?</em>, <em>&#42;</em>, or <em>[</em>, <em>/&#42;</em> at the
805 end is implied.
Junio C Hamano1a4e8412005-12-27 08:17:23806</p>
807</dd>
Junio C Hamano68cf15a2010-11-06 01:01:59808<dt class="hdlist1">
Junio C Hamano6b2cee12006-08-26 08:43:31809--since=&lt;date&gt;
Junio C Hamano1a4e8412005-12-27 08:17:23810</dt>
811<dd>
812<p>
Junio C Hamano6b2cee12006-08-26 08:43:31813 Show commits more recent than a specific date.
814</p>
815</dd>
Junio C Hamano68cf15a2010-11-06 01:01:59816<dt class="hdlist1">
Junio C Hamano6b2cee12006-08-26 08:43:31817--until=&lt;date&gt;
818</dt>
819<dd>
820<p>
821 Show commits older than a specific date.
822</p>
823</dd>
Junio C Hamano68cf15a2010-11-06 01:01:59824<dt class="hdlist1">
Junio C Hamanob1c58582013-10-30 21:55:00825--date-order
Junio C Hamanod5784132006-09-20 21:29:27826</dt>
827<dd>
828<p>
Junio C Hamanob1c58582013-10-30 21:55:00829 Sort commits by date when possible.
Junio C Hamanod5784132006-09-20 21:29:27830</p>
831</dd>
Junio C Hamano68cf15a2010-11-06 01:01:59832<dt class="hdlist1">
Junio C Hamano7d575a52008-04-30 08:45:27833--merge
834</dt>
835<dd>
836<p>
837 After an attempt to merge stops with conflicts, show the commits on
838 the history between two branches (i.e. the HEAD and the MERGE_HEAD)
Junio C Hamano61169122009-02-09 18:05:49839 that modify the conflicted files and do not exist on all the heads
840 being merged.
Junio C Hamano7d575a52008-04-30 08:45:27841</p>
842</dd>
Junio C Hamano68cf15a2010-11-06 01:01:59843<dt class="hdlist1">
Junio C Hamanob1c58582013-10-30 21:55:00844--left-right
Junio C Hamanoa387df32008-08-29 08:56:58845</dt>
846<dd>
847<p>
Junio C Hamanob1c58582013-10-30 21:55:00848 Mark which side of a symmetric diff a commit is reachable
Junio C Hamano61525f92014-01-17 22:46:49849 from. Commits from the left side are prefixed with a <tt>&lt;</tt>
850 symbol and those from the right with a <tt>&gt;</tt> symbol.
Junio C Hamanoa387df32008-08-29 08:56:58851</p>
852</dd>
Junio C Hamano68cf15a2010-11-06 01:01:59853<dt class="hdlist1">
Junio C Hamanob1c58582013-10-30 21:55:00854--full-history
Junio C Hamanod3452a02008-11-15 08:07:55855</dt>
856<dd>
857<p>
Junio C Hamanob1c58582013-10-30 21:55:00858 When filtering history with <em>&lt;path&gt;&#8230;</em>, does not prune some
859 history. (See "History simplification" in <a href="git-log.html">git-log(1)</a>
860 for a more detailed explanation.)
Junio C Hamanod3452a02008-11-15 08:07:55861</p>
862</dd>
Junio C Hamano68cf15a2010-11-06 01:01:59863<dt class="hdlist1">
Junio C Hamanob1c58582013-10-30 21:55:00864--simplify-merges
865</dt>
866<dd>
867<p>
868 Additional option to <em>--full-history</em> to remove some needless
869 merges from the resulting history, as there are no selected
870 commits contributing to this merge. (See "History
871 simplification" in <a href="git-log.html">git-log(1)</a> for a more detailed
872 explanation.)
873</p>
874</dd>
875<dt class="hdlist1">
876--ancestry-path
877</dt>
878<dd>
879<p>
880 When given a range of commits to display
881 (e.g. <em>commit1..commit2</em> or <em>commit2 &#94;commit1</em>), only
882 display commits that exist directly on the ancestry chain
883 between the <em>commit1</em> and <em>commit2</em>, i.e. commits that are
884 both descendants of <em>commit1</em>, and ancestors of <em>commit2</em>.
885 (See "History simplification" in <a href="git-log.html">git-log(1)</a> for a more
886 detailed explanation.)
887</p>
888</dd>
889<dt class="hdlist1">
Junio C Hamanoc5bd79e2014-01-27 21:31:26890-L&lt;start&gt;,&lt;end&gt;:&lt;file&gt;
891</dt>
892<dt class="hdlist1">
893-L:&lt;regex&gt;:&lt;file&gt;
894</dt>
895<dd>
896<p>
897 Trace the evolution of the line range given by "&lt;start&gt;,&lt;end&gt;"
898 (or the funcname regex &lt;regex&gt;) within the &lt;file&gt;. You may
899 not give any pathspec limiters. This is currently limited to
900 a walk starting from a single revision, i.e., you may only
901 give zero or one positive revision arguments.
902 You can specify this option more than once.
903</p>
904<div class="paragraph"><p><strong>Note:</strong> gitk (unlike <a href="git-log.html">git-log(1)</a>) currently only understands
905this option if you specify it "glued together" with its argument. Do
906<strong>not</strong> put a space after <tt>-L</tt>.</p></div>
907<div class="paragraph"><p>&lt;start&gt; and &lt;end&gt; can take one of these forms:</p></div>
908<div class="ulist"><ul>
909<li>
910<p>
911number
912</p>
913<div class="paragraph"><p>If &lt;start&gt; or &lt;end&gt; is a number, it specifies an
914absolute line number (lines count from 1).</p></div>
915</li>
916<li>
917<p>
918/regex/
919</p>
920<div class="paragraph"><p>This form will use the first line matching the given
921POSIX regex. If &lt;start&gt; is a regex, it will search from the end of
922the previous <tt>-L</tt> range, if any, otherwise from the start of file.
923If &lt;start&gt; is &#8220;^/regex/&#8221;, it will search from the start of file.
924If &lt;end&gt; is a regex, it will search
925starting at the line given by &lt;start&gt;.</p></div>
926</li>
927<li>
928<p>
929+offset or -offset
930</p>
931<div class="paragraph"><p>This is only valid for &lt;end&gt; and will specify a number
932of lines before or after the line given by &lt;start&gt;.</p></div>
933</li>
934</ul></div>
935<div class="paragraph"><p>If &#8220;:&lt;regex&gt;&#8221; is given in place of &lt;start&gt; and &lt;end&gt;, it denotes the range
936from the first funcname line that matches &lt;regex&gt;, up to the next
937funcname line. &#8220;:&lt;regex&gt;&#8221; searches from the end of the previous <tt>-L</tt> range,
938if any, otherwise from the start of file.
939&#8220;^:&lt;regex&gt;&#8221; searches from the start of file.</p></div>
940</dd>
941<dt class="hdlist1">
Junio C Hamanob1c58582013-10-30 21:55:00942&lt;revision range&gt;
Junio C Hamano6b2cee12006-08-26 08:43:31943</dt>
944<dd>
945<p>
946 Limit the revisions to show. This can be either a single revision
947 meaning show from the given revision and back, or it can be a range in
948 the form "<em>&lt;from&gt;</em>..<em>&lt;to&gt;</em>" to show all revisions between <em>&lt;from&gt;</em> and
949 back to <em>&lt;to&gt;</em>. Note, more advanced revision selection can be applied.
Junio C Hamano2d47c622007-01-18 06:24:10950 For a more complete list of ways to spell object names, see
Junio C Hamanoa28a9202012-06-21 07:08:23951 <a href="gitrevisions.html">gitrevisions(7)</a>.
Junio C Hamano6b2cee12006-08-26 08:43:31952</p>
953</dd>
Junio C Hamano68cf15a2010-11-06 01:01:59954<dt class="hdlist1">
Junio C Hamano9e395072008-07-31 22:11:21955&lt;path&gt;&#8230;
Junio C Hamano6b2cee12006-08-26 08:43:31956</dt>
957<dd>
958<p>
959 Limit commits to the ones touching files in the given paths. Note, to
Junio C Hamanoa9eca4e2009-03-04 08:29:59960 avoid ambiguity with respect to revision names use "--" to separate the paths
Junio C Hamanoee1e4282007-02-04 08:32:04961 from any preceding options.
Junio C Hamano1a4e8412005-12-27 08:17:23962</p>
963</dd>
Junio C Hamanoba4b9282008-07-06 05:20:31964</dl></div>
Junio C Hamano1a4e8412005-12-27 08:17:23965</div>
Junio C Hamanob1c58582013-10-30 21:55:00966<div class="sect2">
967<h3 id="_gitk_specific_options">gitk-specific options</h3>
968<div class="dlist"><dl>
969<dt class="hdlist1">
970--argscmd=&lt;command&gt;
971</dt>
972<dd>
973<p>
974 Command to be run each time gitk has to determine the revision
975 range to show. The command is expected to print on its
976 standard output a list of additional revisions to be shown,
977 one per line. Use this instead of explicitly specifying a
978 <em>&lt;revision range&gt;</em> if the set of commits to show may vary
979 between refreshes.
980</p>
981</dd>
982<dt class="hdlist1">
983--select-commit=&lt;ref&gt;
984</dt>
985<dd>
986<p>
987 Select the specified commit after loading the graph.
988 Default behavior is equivalent to specifying <em>--select-commit=HEAD</em>.
989</p>
990</dd>
991</dl></div>
992</div>
993</div>
Junio C Hamano9d971152012-12-19 00:43:11994</div>
995<div class="sect1">
Junio C Hamanoba4b9282008-07-06 05:20:31996<h2 id="_examples">Examples</h2>
Junio C Hamano1a4e8412005-12-27 08:17:23997<div class="sectionbody">
Junio C Hamano68cf15a2010-11-06 01:01:59998<div class="dlist"><dl>
999<dt class="hdlist1">
Junio C Hamano1a4e8412005-12-27 08:17:231000gitk v2.6.12.. include/scsi drivers/scsi
1001</dt>
1002<dd>
1003<p>
Junio C Hamano54bf1e22008-12-20 06:30:111004 Show the changes since version <em>v2.6.12</em> that changed any
Junio C Hamano1a4e8412005-12-27 08:17:231005 file in the include/scsi or drivers/scsi subdirectories
1006</p>
1007</dd>
Junio C Hamano68cf15a2010-11-06 01:01:591008<dt class="hdlist1">
Junio C Hamano1bb569e2006-05-05 23:14:251009gitk --since="2 weeks ago" -- gitk
Junio C Hamano1a4e8412005-12-27 08:17:231010</dt>
1011<dd>
1012<p>
1013 Show the changes during the last two weeks to the file <em>gitk</em>.
1014 The "--" is necessary to avoid confusion with the <strong>branch</strong> named
1015 <em>gitk</em>
1016</p>
1017</dd>
Junio C Hamano68cf15a2010-11-06 01:01:591018<dt class="hdlist1">
Junio C Hamano764a6672007-10-23 01:23:311019gitk --max-count=100 --all -- Makefile
Junio C Hamanod5784132006-09-20 21:29:271020</dt>
1021<dd>
1022<p>
1023 Show at most 100 changes made to the file <em>Makefile</em>. Instead of only
1024 looking for changes in the current branch look in all branches.
1025</p>
1026</dd>
Junio C Hamanoba4b9282008-07-06 05:20:311027</dl></div>
Junio C Hamano1a4e8412005-12-27 08:17:231028</div>
Junio C Hamano9d971152012-12-19 00:43:111029</div>
1030<div class="sect1">
Junio C Hamanoba4b9282008-07-06 05:20:311031<h2 id="_files">Files</h2>
Junio C Hamano1bdd3b02008-04-13 05:33:181032<div class="sectionbody">
Junio C Hamanoc2a58762014-03-28 22:15:201033<div class="paragraph"><p>User configuration and preferences are stored at:</p></div>
1034<div class="ulist"><ul>
1035<li>
1036<p>
1037<em>$XDG_CONFIG_HOME/git/gitk</em> if it exists, otherwise
1038</p>
1039</li>
1040<li>
1041<p>
1042<em>$HOME/.gitk</em> if it exists
1043</p>
1044</li>
1045</ul></div>
1046<div class="paragraph"><p>If neither of the above exist then <em>$XDG_CONFIG_HOME/git/gitk</em> is created and
1047used by default. If <em>$XDG_CONFIG_HOME</em> is not set it defaults to
1048<em>$HOME/.config</em> in all cases.</p></div>
Junio C Hamano1bdd3b02008-04-13 05:33:181049</div>
Junio C Hamano9d971152012-12-19 00:43:111050</div>
1051<div class="sect1">
Junio C Hamanob1c58582013-10-30 21:55:001052<h2 id="_history">History</h2>
1053<div class="sectionbody">
1054<div class="paragraph"><p>Gitk was the first graphical repository browser. It&#8217;s written in
1055tcl/tk and started off in a separate repository but was later merged
1056into the main Git repository.</p></div>
1057</div>
1058</div>
1059<div class="sect1">
Junio C Hamanoba4b9282008-07-06 05:20:311060<h2 id="_see_also">SEE ALSO</h2>
Junio C Hamano6b2cee12006-08-26 08:43:311061<div class="sectionbody">
Junio C Hamano68cf15a2010-11-06 01:01:591062<div class="dlist"><dl>
1063<dt class="hdlist1">
Junio C Hamano6b2cee12006-08-26 08:43:311064<em>qgit(1)</em>
1065</dt>
1066<dd>
1067<p>
1068 A repository browser written in C++ using Qt.
1069</p>
1070</dd>
Junio C Hamano68cf15a2010-11-06 01:01:591071<dt class="hdlist1">
Junio C Hamano6b2cee12006-08-26 08:43:311072<em>gitview(1)</em>
1073</dt>
1074<dd>
1075<p>
Junio C Hamano68cf15a2010-11-06 01:01:591076 A repository browser written in Python using Gtk. It&#8217;s based on
Junio C Hamano076ffcc2013-02-06 05:13:211077 <em>bzrk(1)</em> and distributed in the contrib area of the Git repository.
Junio C Hamano6b2cee12006-08-26 08:43:311078</p>
1079</dd>
Junio C Hamano68cf15a2010-11-06 01:01:591080<dt class="hdlist1">
Junio C Hamano6b2cee12006-08-26 08:43:311081<em>tig(1)</em>
1082</dt>
1083<dd>
1084<p>
Junio C Hamano076ffcc2013-02-06 05:13:211085 A minimal repository browser and Git tool output highlighter written
Junio C Hamano6b2cee12006-08-26 08:43:311086 in C using Ncurses.
1087</p>
1088</dd>
Junio C Hamanoba4b9282008-07-06 05:20:311089</dl></div>
Junio C Hamano6b2cee12006-08-26 08:43:311090</div>
Junio C Hamano9d971152012-12-19 00:43:111091</div>
1092<div class="sect1">
Junio C Hamanoba4b9282008-07-06 05:20:311093<h2 id="_git">GIT</h2>
Junio C Hamano1a4e8412005-12-27 08:17:231094<div class="sectionbody">
Junio C Hamanoa28a9202012-06-21 07:08:231095<div class="paragraph"><p>Part of the <a href="git.html">git(1)</a> suite</p></div>
Junio C Hamano1a4e8412005-12-27 08:17:231096</div>
Junio C Hamano7bd050f2011-09-22 06:32:221097</div>
Junio C Hamano9d971152012-12-19 00:43:111098</div>
Junio C Hamano7bd050f2011-09-22 06:32:221099<div id="footnotes"><hr /></div>
Junio C Hamano1a4e8412005-12-27 08:17:231100<div id="footer">
1101<div id="footer-text">
Junio C Hamanoc2a58762014-03-28 22:15:201102Last updated 2014-03-28 15:14:58 PDT
Junio C Hamano1a4e8412005-12-27 08:17:231103</div>
1104</div>
1105</body>
1106</html>