blob: e35d4136b1b9a68fcdfb7b05572354d5bfa49073 [file] [log] [blame]
Junio C Hamano6ac2f142007-03-01 01:24: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>
Junio C Hamano9d971152012-12-19 00:43:115<meta http-equiv="Content-Type" content="application/xhtml+xml; charset=UTF-8" />
6<meta name="generator" content="AsciiDoc 8.6.8" />
Junio C Hamano68cf15a2010-11-06 01:01:597<title>git-bundle(1)</title>
Junio C Hamano6ac2f142007-03-01 01:24:568<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 Hamano6ac2f142007-03-01 01:24:5624}
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 Hamano6ac2f142007-03-01 01:24:5637
38em {
39 font-style: italic;
Junio C Hamano68cf15a2010-11-06 01:01:5940 color: navy;
Junio C Hamano6ac2f142007-03-01 01:24:5641}
42
43strong {
44 font-weight: bold;
Junio C Hamano68cf15a2010-11-06 01:01:5945 color: #083194;
Junio C Hamano6ac2f142007-03-01 01:24:5646}
47
Junio C Hamano6ac2f142007-03-01 01:24:5648h1, h2, h3, h4, h5, h6 {
49 color: #527bbd;
Junio C Hamano6ac2f142007-03-01 01:24:5650 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 Hamano6ac2f142007-03-01 01:24:5656 border-bottom: 2px solid silver;
57}
58h2 {
Junio C Hamano6ac2f142007-03-01 01:24:5659 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 Hamano6ac2f142007-03-01 01:24:5670
71div.sectionbody {
Junio C Hamano6ac2f142007-03-01 01:24:5672 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 Hamano9d971152012-12-19 00:43:1190.monospaced, code, pre {
91 font-family: "Courier New", Courier, monospace;
92 font-size: inherit;
93 color: navy;
Junio C Hamano6ac2f142007-03-01 01:24:5694 padding: 0;
95 margin: 0;
96}
97
Junio C Hamano9d971152012-12-19 00:43:1198
99#author {
Junio C Hamano6ac2f142007-03-01 01:24:56100 color: #527bbd;
Junio C Hamano6ac2f142007-03-01 01:24:56101 font-weight: bold;
Junio C Hamanoba4b9282008-07-06 05:20:31102 font-size: 1.1em;
Junio C Hamano6ac2f142007-03-01 01:24:56103}
Junio C Hamano9d971152012-12-19 00:43:11104#email {
Junio C Hamano6ac2f142007-03-01 01:24:56105}
Junio C Hamano9d971152012-12-19 00:43:11106#revnumber, #revdate, #revremark {
Junio C Hamano6ac2f142007-03-01 01:24:56107}
108
Junio C Hamano9d971152012-12-19 00:43:11109#footer {
Junio C Hamano6ac2f142007-03-01 01:24:56110 font-size: small;
111 border-top: 2px solid silver;
112 padding-top: 0.5em;
113 margin-top: 4.0em;
114}
Junio C Hamano9d971152012-12-19 00:43:11115#footer-text {
Junio C Hamano6ac2f142007-03-01 01:24:56116 float: left;
117 padding-bottom: 0.5em;
118}
Junio C Hamano9d971152012-12-19 00:43:11119#footer-badges {
Junio C Hamano6ac2f142007-03-01 01:24:56120 float: right;
121 padding-bottom: 0.5em;
122}
123
Junio C Hamano9d971152012-12-19 00:43:11124#preamble {
Junio C Hamano68cf15a2010-11-06 01:01:59125 margin-top: 1.5em;
126 margin-bottom: 1.5em;
127}
Junio C Hamano9d971152012-12-19 00:43:11128div.imageblock, div.exampleblock, div.verseblock,
Junio C Hamano6ac2f142007-03-01 01:24:56129div.quoteblock, div.literalblock, div.listingblock, div.sidebarblock,
130div.admonitionblock {
Junio C Hamano7bd050f2011-09-22 06:32:22131 margin-top: 1.0em;
Junio C Hamano6ac2f142007-03-01 01:24:56132 margin-bottom: 1.5em;
133}
134div.admonitionblock {
Junio C Hamano7bd050f2011-09-22 06:32:22135 margin-top: 2.0em;
136 margin-bottom: 2.0em;
137 margin-right: 10%;
138 color: #606060;
Junio C Hamano6ac2f142007-03-01 01:24:56139}
140
141div.content { /* Block element content. */
142 padding: 0;
143}
144
145/* Block element titles. */
146div.title, caption.title {
Junio C Hamano68cf15a2010-11-06 01:01:59147 color: #527bbd;
Junio C Hamano6ac2f142007-03-01 01:24:56148 font-weight: bold;
149 text-align: left;
150 margin-top: 1.0em;
151 margin-bottom: 0.5em;
152}
153div.title + * {
154 margin-top: 0;
155}
156
157td div.title:first-child {
158 margin-top: 0.0em;
159}
160div.content div.title:first-child {
161 margin-top: 0.0em;
162}
163div.content + div.title {
164 margin-top: 0.0em;
165}
166
167div.sidebarblock > div.content {
168 background: #ffffee;
Junio C Hamano9d971152012-12-19 00:43:11169 border: 1px solid #dddddd;
170 border-left: 4px solid #f0f0f0;
Junio C Hamano6ac2f142007-03-01 01:24:56171 padding: 0.5em;
172}
173
174div.listingblock > div.content {
Junio C Hamano9d971152012-12-19 00:43:11175 border: 1px solid #dddddd;
176 border-left: 5px solid #f0f0f0;
177 background: #f8f8f8;
Junio C Hamano6ac2f142007-03-01 01:24:56178 padding: 0.5em;
179}
180
Junio C Hamano7bd050f2011-09-22 06:32:22181div.quoteblock, div.verseblock {
182 padding-left: 1.0em;
183 margin-left: 1.0em;
Junio C Hamano68cf15a2010-11-06 01:01:59184 margin-right: 10%;
Junio C Hamano9d971152012-12-19 00:43:11185 border-left: 5px solid #f0f0f0;
186 color: #888;
Junio C Hamano6ac2f142007-03-01 01:24:56187}
Junio C Hamano7bd050f2011-09-22 06:32:22188
Junio C Hamano68cf15a2010-11-06 01:01:59189div.quoteblock > div.attribution {
190 padding-top: 0.5em;
Junio C Hamano6ac2f142007-03-01 01:24:56191 text-align: right;
192}
Junio C Hamano68cf15a2010-11-06 01:01:59193
Junio C Hamano9d971152012-12-19 00:43:11194div.verseblock > pre.content {
195 font-family: inherit;
196 font-size: inherit;
Junio C Hamano68cf15a2010-11-06 01:01:59197}
198div.verseblock > div.attribution {
199 padding-top: 0.75em;
200 text-align: left;
201}
202/* DEPRECATED: Pre version 8.2.7 verse style literal block. */
Junio C Hamanoba4b9282008-07-06 05:20:31203div.verseblock + div.attribution {
204 text-align: left;
205}
Junio C Hamano6ac2f142007-03-01 01:24:56206
207div.admonitionblock .icon {
208 vertical-align: top;
209 font-size: 1.1em;
210 font-weight: bold;
211 text-decoration: underline;
212 color: #527bbd;
213 padding-right: 0.5em;
214}
215div.admonitionblock td.content {
216 padding-left: 0.5em;
Junio C Hamano7bd050f2011-09-22 06:32:22217 border-left: 3px solid #dddddd;
Junio C Hamano6ac2f142007-03-01 01:24:56218}
219
220div.exampleblock > div.content {
Junio C Hamano7bd050f2011-09-22 06:32:22221 border-left: 3px solid #dddddd;
222 padding-left: 0.5em;
Junio C Hamano6ac2f142007-03-01 01:24:56223}
224
Junio C Hamano6ac2f142007-03-01 01:24:56225div.imageblock div.content { padding-left: 0; }
Junio C Hamano6ac2f142007-03-01 01:24:56226span.image img { border-style: none; }
Junio C Hamano68cf15a2010-11-06 01:01:59227a.image:visited { color: white; }
Junio C Hamano6ac2f142007-03-01 01:24:56228
229dl {
230 margin-top: 0.8em;
231 margin-bottom: 0.8em;
232}
233dt {
234 margin-top: 0.5em;
235 margin-bottom: 0;
Junio C Hamano68cf15a2010-11-06 01:01:59236 font-style: normal;
237 color: navy;
Junio C Hamano6ac2f142007-03-01 01:24:56238}
239dd > *:first-child {
Junio C Hamano68cf15a2010-11-06 01:01:59240 margin-top: 0.1em;
Junio C Hamano6ac2f142007-03-01 01:24:56241}
242
243ul, ol {
244 list-style-position: outside;
245}
Junio C Hamano68cf15a2010-11-06 01:01:59246ol.arabic {
247 list-style-type: decimal;
248}
249ol.loweralpha {
Junio C Hamano6ac2f142007-03-01 01:24:56250 list-style-type: lower-alpha;
251}
Junio C Hamano68cf15a2010-11-06 01:01:59252ol.upperalpha {
253 list-style-type: upper-alpha;
254}
255ol.lowerroman {
256 list-style-type: lower-roman;
257}
258ol.upperroman {
259 list-style-type: upper-roman;
260}
261
262div.compact ul, div.compact ol,
263div.compact p, div.compact p,
264div.compact div, div.compact div {
265 margin-top: 0.1em;
266 margin-bottom: 0.1em;
267}
Junio C Hamano6ac2f142007-03-01 01:24:56268
Junio C Hamano6ac2f142007-03-01 01:24:56269tfoot {
270 font-weight: bold;
271}
Junio C Hamano68cf15a2010-11-06 01:01:59272td > div.verse {
273 white-space: pre;
274}
Junio C Hamano68cf15a2010-11-06 01:01:59275
276div.hdlist {
Junio C Hamano6ac2f142007-03-01 01:24:56277 margin-top: 0.8em;
278 margin-bottom: 0.8em;
279}
Junio C Hamano68cf15a2010-11-06 01:01:59280div.hdlist tr {
281 padding-bottom: 15px;
Junio C Hamanoba4b9282008-07-06 05:20:31282}
Junio C Hamano68cf15a2010-11-06 01:01:59283dt.hdlist1.strong, td.hdlist1.strong {
284 font-weight: bold;
285}
286td.hdlist1 {
Junio C Hamano6ac2f142007-03-01 01:24:56287 vertical-align: top;
Junio C Hamano68cf15a2010-11-06 01:01:59288 font-style: normal;
Junio C Hamano6ac2f142007-03-01 01:24:56289 padding-right: 0.8em;
Junio C Hamano68cf15a2010-11-06 01:01:59290 color: navy;
Junio C Hamano6ac2f142007-03-01 01:24:56291}
Junio C Hamano68cf15a2010-11-06 01:01:59292td.hdlist2 {
Junio C Hamano6ac2f142007-03-01 01:24:56293 vertical-align: top;
294}
Junio C Hamano68cf15a2010-11-06 01:01:59295div.hdlist.compact tr {
296 margin: 0;
297 padding-bottom: 0;
298}
299
300.comment {
301 background: yellow;
302}
Junio C Hamano6ac2f142007-03-01 01:24:56303
Junio C Hamano7bd050f2011-09-22 06:32:22304.footnote, .footnoteref {
305 font-size: 0.8em;
306}
307
308span.footnote, span.footnoteref {
309 vertical-align: super;
310}
311
312#footnotes {
313 margin: 20px 0 20px 0;
314 padding: 7px 0 0 0;
315}
316
317#footnotes div.footnote {
318 margin: 0 0 5px 0;
319}
320
321#footnotes hr {
322 border: none;
323 border-top: 1px solid silver;
324 height: 1px;
325 text-align: left;
326 margin-left: 0;
327 width: 20%;
328 min-width: 100px;
329}
330
Junio C Hamano9d971152012-12-19 00:43:11331div.colist td {
332 padding-right: 0.5em;
333 padding-bottom: 0.3em;
334 vertical-align: top;
335}
336div.colist td img {
337 margin-top: 0.3em;
Junio C Hamano6ac2f142007-03-01 01:24:56338}
Junio C Hamanoba4b9282008-07-06 05:20:31339
Junio C Hamano9d971152012-12-19 00:43:11340@media print {
341 #footer-badges { display: none; }
342}
343
344#toc {
Junio C Hamano7bd050f2011-09-22 06:32:22345 margin-bottom: 2.5em;
346}
347
Junio C Hamano9d971152012-12-19 00:43:11348#toctitle {
Junio C Hamanoba4b9282008-07-06 05:20:31349 color: #527bbd;
Junio C Hamanoba4b9282008-07-06 05:20:31350 font-size: 1.1em;
351 font-weight: bold;
352 margin-top: 1.0em;
353 margin-bottom: 0.1em;
354}
355
Junio C Hamano9d971152012-12-19 00:43:11356div.toclevel0, div.toclevel1, div.toclevel2, div.toclevel3, div.toclevel4 {
Junio C Hamanoba4b9282008-07-06 05:20:31357 margin-top: 0;
358 margin-bottom: 0;
359}
360div.toclevel2 {
361 margin-left: 2em;
362 font-size: 0.9em;
363}
364div.toclevel3 {
365 margin-left: 4em;
366 font-size: 0.9em;
367}
368div.toclevel4 {
369 margin-left: 6em;
370 font-size: 0.9em;
371}
Junio C Hamano9d971152012-12-19 00:43:11372
373span.aqua { color: aqua; }
374span.black { color: black; }
375span.blue { color: blue; }
376span.fuchsia { color: fuchsia; }
377span.gray { color: gray; }
378span.green { color: green; }
379span.lime { color: lime; }
380span.maroon { color: maroon; }
381span.navy { color: navy; }
382span.olive { color: olive; }
383span.purple { color: purple; }
384span.red { color: red; }
385span.silver { color: silver; }
386span.teal { color: teal; }
387span.white { color: white; }
388span.yellow { color: yellow; }
389
390span.aqua-background { background: aqua; }
391span.black-background { background: black; }
392span.blue-background { background: blue; }
393span.fuchsia-background { background: fuchsia; }
394span.gray-background { background: gray; }
395span.green-background { background: green; }
396span.lime-background { background: lime; }
397span.maroon-background { background: maroon; }
398span.navy-background { background: navy; }
399span.olive-background { background: olive; }
400span.purple-background { background: purple; }
401span.red-background { background: red; }
402span.silver-background { background: silver; }
403span.teal-background { background: teal; }
404span.white-background { background: white; }
405span.yellow-background { background: yellow; }
406
407span.big { font-size: 2em; }
408span.small { font-size: 0.6em; }
409
410span.underline { text-decoration: underline; }
411span.overline { text-decoration: overline; }
412span.line-through { text-decoration: line-through; }
413
414div.unbreakable { page-break-inside: avoid; }
415
416
417/*
418 * xhtml11 specific
419 *
420 * */
421
422div.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
455table.tableblock {
456 margin-top: 1.0em;
457 margin-bottom: 1.5em;
458}
459thead, p.tableblock.header {
460 font-weight: bold;
461 color: #527bbd;
462}
463p.tableblock {
464 margin-top: 0;
465}
466table.tableblock {
467 border-width: 3px;
468 border-spacing: 0px;
469 border-style: solid;
470 border-color: #527bbd;
471 border-collapse: collapse;
472}
473th.tableblock, td.tableblock {
474 border-width: 1px;
475 padding: 4px;
476 border-style: solid;
477 border-color: #527bbd;
478}
479
480table.tableblock.frame-topbot {
481 border-left-style: hidden;
482 border-right-style: hidden;
483}
484table.tableblock.frame-sides {
485 border-top-style: hidden;
486 border-bottom-style: hidden;
487}
488table.tableblock.frame-none {
489 border-style: hidden;
490}
491
492th.tableblock.halign-left, td.tableblock.halign-left {
493 text-align: left;
494}
495th.tableblock.halign-center, td.tableblock.halign-center {
496 text-align: center;
497}
498th.tableblock.halign-right, td.tableblock.halign-right {
499 text-align: right;
500}
501
502th.tableblock.valign-top, td.tableblock.valign-top {
503 vertical-align: top;
504}
505th.tableblock.valign-middle, td.tableblock.valign-middle {
506 vertical-align: middle;
507}
508th.tableblock.valign-bottom, td.tableblock.valign-bottom {
509 vertical-align: bottom;
510}
511
512
513/*
514 * manpage specific
515 *
516 * */
517
518body.manpage h1 {
Junio C Hamano68cf15a2010-11-06 01:01:59519 padding-top: 0.5em;
520 padding-bottom: 0.5em;
521 border-top: 2px solid silver;
522 border-bottom: 2px solid silver;
523}
Junio C Hamano9d971152012-12-19 00:43:11524body.manpage h2 {
Junio C Hamano68cf15a2010-11-06 01:01:59525 border-style: none;
526}
Junio C Hamano9d971152012-12-19 00:43:11527body.manpage div.sectionbody {
528 margin-left: 3em;
Junio C Hamano68cf15a2010-11-06 01:01:59529}
530
531@media print {
Junio C Hamano9d971152012-12-19 00:43:11532 body.manpage div#toc { display: none; }
Junio C Hamano68cf15a2010-11-06 01:01:59533}
534
Junio C Hamano6ac2f142007-03-01 01:24:56535
Junio C Hamano6ac2f142007-03-01 01:24:56536</style>
Junio C Hamano7bd050f2011-09-22 06:32:22537<script type="text/javascript">
538/*<![CDATA[*/
Junio C Hamano7bd050f2011-09-22 06:32:22539var asciidoc = { // Namespace.
540
541/////////////////////////////////////////////////////////////////////
542// Table Of Contents generator
543/////////////////////////////////////////////////////////////////////
544
545/* Author: Mihai Bazon, September 2002
546 * http://students.infoiasi.ro/~mishoo
547 *
548 * Table Of Content generator
549 * Version: 0.4
550 *
551 * Feel free to use this script under the terms of the GNU General Public
552 * License, as long as you do not remove or alter this notice.
553 */
554
555 /* modified by Troy D. Hanson, September 2006. License: GPL */
556 /* modified by Stuart Rackham, 2006, 2009. License: GPL */
557
558// toclevels = 1..4.
559toc: function (toclevels) {
560
561 function getText(el) {
562 var text = "";
563 for (var i = el.firstChild; i != null; i = i.nextSibling) {
564 if (i.nodeType == 3 /* Node.TEXT_NODE */) // IE doesn't speak constants.
565 text += i.data;
566 else if (i.firstChild != null)
567 text += getText(i);
568 }
569 return text;
570 }
571
572 function TocEntry(el, text, toclevel) {
573 this.element = el;
574 this.text = text;
575 this.toclevel = toclevel;
576 }
577
578 function tocEntries(el, toclevels) {
579 var result = new Array;
Junio C Hamano9d971152012-12-19 00:43:11580 var re = new RegExp('[hH]([1-'+(toclevels+1)+'])');
Junio C Hamano7bd050f2011-09-22 06:32:22581 // Function that scans the DOM tree for header elements (the DOM2
582 // nodeIterator API would be a better technique but not supported by all
583 // browsers).
584 var iterate = function (el) {
585 for (var i = el.firstChild; i != null; i = i.nextSibling) {
586 if (i.nodeType == 1 /* Node.ELEMENT_NODE */) {
587 var mo = re.exec(i.tagName);
588 if (mo && (i.getAttribute("class") || i.getAttribute("className")) != "float") {
589 result[result.length] = new TocEntry(i, getText(i), mo[1]-1);
590 }
591 iterate(i);
592 }
593 }
594 }
595 iterate(el);
596 return result;
597 }
598
599 var toc = document.getElementById("toc");
Junio C Hamano9d971152012-12-19 00:43:11600 if (!toc) {
601 return;
602 }
603
604 // Delete existing TOC entries in case we're reloading the TOC.
605 var tocEntriesToRemove = [];
606 var i;
607 for (i = 0; i < toc.childNodes.length; i++) {
608 var entry = toc.childNodes[i];
609 if (entry.nodeName.toLowerCase() == 'div'
610 && entry.getAttribute("class")
611 && entry.getAttribute("class").match(/^toclevel/))
612 tocEntriesToRemove.push(entry);
613 }
614 for (i = 0; i < tocEntriesToRemove.length; i++) {
615 toc.removeChild(tocEntriesToRemove[i]);
616 }
617
618 // Rebuild TOC entries.
Junio C Hamano7bd050f2011-09-22 06:32:22619 var entries = tocEntries(document.getElementById("content"), toclevels);
620 for (var i = 0; i < entries.length; ++i) {
621 var entry = entries[i];
622 if (entry.element.id == "")
623 entry.element.id = "_toc_" + i;
624 var a = document.createElement("a");
625 a.href = "#" + entry.element.id;
626 a.appendChild(document.createTextNode(entry.text));
627 var div = document.createElement("div");
628 div.appendChild(a);
629 div.className = "toclevel" + entry.toclevel;
630 toc.appendChild(div);
631 }
632 if (entries.length == 0)
633 toc.parentNode.removeChild(toc);
634},
635
636
637/////////////////////////////////////////////////////////////////////
638// Footnotes generator
639/////////////////////////////////////////////////////////////////////
640
641/* Based on footnote generation code from:
642 * http://www.brandspankingnew.net/archive/2005/07/format_footnote.html
643 */
644
645footnotes: function () {
Junio C Hamano9d971152012-12-19 00:43:11646 // Delete existing footnote entries in case we're reloading the footnodes.
647 var i;
Junio C Hamano7bd050f2011-09-22 06:32:22648 var noteholder = document.getElementById("footnotes");
Junio C Hamano9d971152012-12-19 00:43:11649 if (!noteholder) {
650 return;
651 }
652 var entriesToRemove = [];
653 for (i = 0; i < noteholder.childNodes.length; i++) {
654 var entry = noteholder.childNodes[i];
655 if (entry.nodeName.toLowerCase() == 'div' && entry.getAttribute("class") == "footnote")
656 entriesToRemove.push(entry);
657 }
658 for (i = 0; i < entriesToRemove.length; i++) {
659 noteholder.removeChild(entriesToRemove[i]);
660 }
661
662 // Rebuild footnote entries.
663 var cont = document.getElementById("content");
Junio C Hamano7bd050f2011-09-22 06:32:22664 var spans = cont.getElementsByTagName("span");
665 var refs = {};
666 var n = 0;
667 for (i=0; i<spans.length; i++) {
668 if (spans[i].className == "footnote") {
669 n++;
Junio C Hamano9d971152012-12-19 00:43:11670 var note = spans[i].getAttribute("data-note");
671 if (!note) {
672 // Use [\s\S] in place of . so multi-line matches work.
673 // Because JavaScript has no s (dotall) regex flag.
674 note = spans[i].innerHTML.match(/\s*\[([\s\S]*)]\s*/)[1];
675 spans[i].innerHTML =
676 "[<a id='_footnoteref_" + n + "' href='#_footnote_" + n +
677 "' title='View footnote' class='footnote'>" + n + "</a>]";
678 spans[i].setAttribute("data-note", note);
679 }
Junio C Hamano7bd050f2011-09-22 06:32:22680 noteholder.innerHTML +=
681 "<div class='footnote' id='_footnote_" + n + "'>" +
682 "<a href='#_footnoteref_" + n + "' title='Return to text'>" +
683 n + "</a>. " + note + "</div>";
Junio C Hamano7bd050f2011-09-22 06:32:22684 var id =spans[i].getAttribute("id");
685 if (id != null) refs["#"+id] = n;
686 }
687 }
688 if (n == 0)
689 noteholder.parentNode.removeChild(noteholder);
690 else {
691 // Process footnoterefs.
692 for (i=0; i<spans.length; i++) {
693 if (spans[i].className == "footnoteref") {
694 var href = spans[i].getElementsByTagName("a")[0].getAttribute("href");
695 href = href.match(/#.*/)[0]; // Because IE return full URL.
696 n = refs[href];
697 spans[i].innerHTML =
698 "[<a href='#_footnote_" + n +
699 "' title='View footnote' class='footnote'>" + n + "</a>]";
700 }
701 }
702 }
Junio C Hamano9d971152012-12-19 00:43:11703},
704
705install: function(toclevels) {
706 var timerId;
707
708 function reinstall() {
709 asciidoc.footnotes();
710 if (toclevels) {
711 asciidoc.toc(toclevels);
712 }
713 }
714
715 function reinstallAndRemoveTimer() {
716 clearInterval(timerId);
717 reinstall();
718 }
719
720 timerId = setInterval(reinstall, 500);
721 if (document.addEventListener)
722 document.addEventListener("DOMContentLoaded", reinstallAndRemoveTimer, false);
723 else
724 window.onload = reinstallAndRemoveTimer;
Junio C Hamano7bd050f2011-09-22 06:32:22725}
726
727}
Junio C Hamano9d971152012-12-19 00:43:11728asciidoc.install();
Junio C Hamano7bd050f2011-09-22 06:32:22729/*]]>*/
730</script>
Junio C Hamano6ac2f142007-03-01 01:24:56731</head>
Junio C Hamano9d971152012-12-19 00:43:11732<body class="manpage">
Junio C Hamano6ac2f142007-03-01 01:24:56733<div id="header">
734<h1>
735git-bundle(1) Manual Page
736</h1>
737<h2>NAME</h2>
738<div class="sectionbody">
739<p>git-bundle -
740 Move objects and refs by archive
741</p>
742</div>
743</div>
Junio C Hamano7bd050f2011-09-22 06:32:22744<div id="content">
Junio C Hamano9d971152012-12-19 00:43:11745<div class="sect1">
Junio C Hamano68cf15a2010-11-06 01:01:59746<h2 id="_synopsis">SYNOPSIS</h2>
Junio C Hamano6ac2f142007-03-01 01:24:56747<div class="sectionbody">
Junio C Hamanoa9b8d242007-05-19 04:51:55748<div class="verseblock">
Junio C Hamano9d971152012-12-19 00:43:11749<pre class="content"><em>git bundle</em> create &lt;file&gt; &lt;git-rev-list-args&gt;
Junio C Hamanofce7c7e2008-07-02 03:06:38750<em>git bundle</em> verify &lt;file&gt;
Junio C Hamanod2179ef2010-10-22 04:12:17751<em>git bundle</em> list-heads &lt;file&gt; [&lt;refname&gt;&#8230;]
Junio C Hamano9d971152012-12-19 00:43:11752<em>git bundle</em> unbundle &lt;file&gt; [&lt;refname&gt;&#8230;]</pre>
753<div class="attribution">
Junio C Hamano68cf15a2010-11-06 01:01:59754</div></div>
Junio C Hamano6ac2f142007-03-01 01:24:56755</div>
Junio C Hamano9d971152012-12-19 00:43:11756</div>
757<div class="sect1">
Junio C Hamanoba4b9282008-07-06 05:20:31758<h2 id="_description">DESCRIPTION</h2>
Junio C Hamano6ac2f142007-03-01 01:24:56759<div class="sectionbody">
Junio C Hamano68cf15a2010-11-06 01:01:59760<div class="paragraph"><p>Some workflows require that one or more branches of development on one
Junio C Hamano6ac2f142007-03-01 01:24:56761machine be replicated on another machine, but the two machines cannot
Junio C Hamano076ffcc2013-02-06 05:13:21762be directly connected, and therefore the interactive Git protocols (git,
Junio C Hamano1de75722009-03-26 08:39:38763ssh, rsync, http) cannot be used. This command provides support for
Junio C Hamano1aa40d22010-01-21 17:46:43764<em>git fetch</em> and <em>git pull</em> to operate by packaging objects and references
Junio C Hamano6ac2f142007-03-01 01:24:56765in an archive at the originating machine, then importing those into
Junio C Hamano1aa40d22010-01-21 17:46:43766another repository using <em>git fetch</em> and <em>git pull</em>
Junio C Hamano2bd8a742009-12-01 21:16:59767after moving the archive by some means (e.g., by sneakernet). As no
Junio C Hamano1de75722009-03-26 08:39:38768direct connection between the repositories exists, the user must specify a
Junio C Hamano6ac2f142007-03-01 01:24:56769basis for the bundle that is held by the destination repository: the
770bundle assumes that all objects in the basis are already in the
Junio C Hamanoba4b9282008-07-06 05:20:31771destination repository.</p></div>
Junio C Hamano6ac2f142007-03-01 01:24:56772</div>
Junio C Hamano9d971152012-12-19 00:43:11773</div>
774<div class="sect1">
Junio C Hamanoba4b9282008-07-06 05:20:31775<h2 id="_options">OPTIONS</h2>
Junio C Hamano6ac2f142007-03-01 01:24:56776<div class="sectionbody">
Junio C Hamano68cf15a2010-11-06 01:01:59777<div class="dlist"><dl>
778<dt class="hdlist1">
Junio C Hamano6ac2f142007-03-01 01:24:56779create &lt;file&gt;
780</dt>
781<dd>
782<p>
Junio C Hamano2db3e752010-09-03 21:33:06783 Used to create a bundle named <em>file</em>. This requires the
784 <em>git-rev-list-args</em> arguments to define the bundle contents.
Junio C Hamano6ac2f142007-03-01 01:24:56785</p>
786</dd>
Junio C Hamano68cf15a2010-11-06 01:01:59787<dt class="hdlist1">
Junio C Hamano6ac2f142007-03-01 01:24:56788verify &lt;file&gt;
789</dt>
790<dd>
791<p>
Junio C Hamano2db3e752010-09-03 21:33:06792 Used to check that a bundle file is valid and will apply
793 cleanly to the current repository. This includes checks on the
794 bundle format itself as well as checking that the prerequisite
795 commits exist and are fully linked in the current repository.
796 <em>git bundle</em> prints a list of missing commits, if any, and exits
797 with a non-zero status.
Junio C Hamano6ac2f142007-03-01 01:24:56798</p>
799</dd>
Junio C Hamano68cf15a2010-11-06 01:01:59800<dt class="hdlist1">
Junio C Hamano6ac2f142007-03-01 01:24:56801list-heads &lt;file&gt;
802</dt>
803<dd>
804<p>
Junio C Hamano2db3e752010-09-03 21:33:06805 Lists the references defined in the bundle. If followed by a
806 list of references, only references matching those given are
807 printed out.
Junio C Hamano6ac2f142007-03-01 01:24:56808</p>
809</dd>
Junio C Hamano68cf15a2010-11-06 01:01:59810<dt class="hdlist1">
Junio C Hamano6ac2f142007-03-01 01:24:56811unbundle &lt;file&gt;
812</dt>
813<dd>
814<p>
Junio C Hamano2db3e752010-09-03 21:33:06815 Passes the objects in the bundle to <em>git index-pack</em>
816 for storage in the repository, then prints the names of all
817 defined references. If a list of references is given, only
818 references matching those in the list are printed. This command is
819 really plumbing, intended to be called only by <em>git fetch</em>.
Junio C Hamano6ac2f142007-03-01 01:24:56820</p>
821</dd>
Junio C Hamano68cf15a2010-11-06 01:01:59822<dt class="hdlist1">
Junio C Hamano2db3e752010-09-03 21:33:06823&lt;git-rev-list-args&gt;
Junio C Hamano6ac2f142007-03-01 01:24:56824</dt>
825<dd>
826<p>
Junio C Hamano2db3e752010-09-03 21:33:06827 A list of arguments, acceptable to <em>git rev-parse</em> and
Junio C Hamano7165bf72011-01-04 22:06:18828 <em>git rev-list</em> (and containing a named ref, see SPECIFYING REFERENCES
Junio C Hamano2db3e752010-09-03 21:33:06829 below), that specifies the specific objects and references
Junio C Hamano9d971152012-12-19 00:43:11830 to transport. For example, <code>master~10..master</code> causes the
Junio C Hamano2db3e752010-09-03 21:33:06831 current master reference to be packaged along with all objects
832 added since its 10th ancestor commit. There is no explicit
833 limit to the number of references and objects that may be
834 packaged.
Junio C Hamano6ac2f142007-03-01 01:24:56835</p>
836</dd>
Junio C Hamano68cf15a2010-11-06 01:01:59837<dt class="hdlist1">
Junio C Hamanod2179ef2010-10-22 04:12:17838[&lt;refname&gt;&#8230;]
Junio C Hamano6ac2f142007-03-01 01:24:56839</dt>
840<dd>
841<p>
Junio C Hamano2db3e752010-09-03 21:33:06842 A list of references used to limit the references reported as
843 available. This is principally of use to <em>git fetch</em>, which
844 expects to receive only those references asked for and not
845 necessarily everything in the pack (in this case, <em>git bundle</em> acts
846 like <em>git fetch-pack</em>).
Junio C Hamano6ac2f142007-03-01 01:24:56847</p>
848</dd>
Junio C Hamanoba4b9282008-07-06 05:20:31849</dl></div>
Junio C Hamano6ac2f142007-03-01 01:24:56850</div>
Junio C Hamano9d971152012-12-19 00:43:11851</div>
852<div class="sect1">
Junio C Hamanoba4b9282008-07-06 05:20:31853<h2 id="_specifying_references">SPECIFYING REFERENCES</h2>
Junio C Hamano6ac2f142007-03-01 01:24:56854<div class="sectionbody">
Junio C Hamano68cf15a2010-11-06 01:01:59855<div class="paragraph"><p><em>git bundle</em> will only package references that are shown by
Junio C Hamano1aa40d22010-01-21 17:46:43856<em>git show-ref</em>: this includes heads, tags, and remote heads. References
Junio C Hamano9d971152012-12-19 00:43:11857such as <code>master~1</code> cannot be packaged, but are perfectly suitable for
Junio C Hamano6ac2f142007-03-01 01:24:56858defining the basis. More than one reference may be packaged, and more
859than one basis can be specified. The objects packaged are those not
860contained in the union of the given bases. Each basis can be
Junio C Hamano9d971152012-12-19 00:43:11861specified explicitly (e.g. <code>^master~10</code>), or implicitly (e.g.
862<code>master~10..master</code>, <code>--since=10.days.ago master</code>).</p></div>
Junio C Hamano68cf15a2010-11-06 01:01:59863<div class="paragraph"><p>It is very important that the basis used be held by the destination.
Junio C Hamano1de75722009-03-26 08:39:38864It is okay to err on the side of caution, causing the bundle file
865to contain objects already in the destination, as these are ignored
Junio C Hamanoba4b9282008-07-06 05:20:31866when unpacking at the destination.</p></div>
Junio C Hamano6ac2f142007-03-01 01:24:56867</div>
Junio C Hamano9d971152012-12-19 00:43:11868</div>
869<div class="sect1">
Junio C Hamanoba4b9282008-07-06 05:20:31870<h2 id="_example">EXAMPLE</h2>
Junio C Hamano6ac2f142007-03-01 01:24:56871<div class="sectionbody">
Junio C Hamano68cf15a2010-11-06 01:01:59872<div class="paragraph"><p>Assume you want to transfer the history from a repository R1 on machine A
Junio C Hamanoa3bb6eb2009-02-05 01:26:33873to another repository R2 on machine B.
Junio C Hamano6ac2f142007-03-01 01:24:56874For whatever reason, direct connection between A and B is not allowed,
Junio C Hamano1de75722009-03-26 08:39:38875but we can move data from A to B via some mechanism (CD, email, etc.).
876We want to update R2 with development made on the branch master in R1.</p></div>
Junio C Hamano68cf15a2010-11-06 01:01:59877<div class="paragraph"><p>To bootstrap the process, you can first create a bundle that does not have
Junio C Hamano1de75722009-03-26 08:39:38878any basis. You can use a tag to remember up to what commit you last
879processed, in order to make it easy to later update the other repository
880with an incremental bundle:</p></div>
Junio C Hamano601f3e52008-02-25 08:40:42881<div class="listingblock">
882<div class="content">
Junio C Hamano9d971152012-12-19 00:43:11883<pre><code>machineA$ cd R1
Junio C Hamano61169122009-02-09 18:05:49884machineA$ git bundle create file.bundle master
Junio C Hamano9d971152012-12-19 00:43:11885machineA$ git tag -f lastR2bundle master</code></pre>
Junio C Hamano601f3e52008-02-25 08:40:42886</div></div>
Junio C Hamano6bdcc7d2013-01-09 00:15:42887<div class="paragraph"><p>Then you transfer file.bundle to the target machine B. Because this
888bundle does not require any existing object to be extracted, you can
889create a new repository on machine B by cloning from it:</p></div>
Junio C Hamano4fd58d42007-09-30 00:51:14890<div class="listingblock">
891<div class="content">
Junio C Hamano6bdcc7d2013-01-09 00:15:42892<pre><code>machineB$ git clone -b master /home/me/tmp/file.bundle R2</code></pre>
Junio C Hamano4fd58d42007-09-30 00:51:14893</div></div>
Junio C Hamano68cf15a2010-11-06 01:01:59894<div class="paragraph"><p>This will define a remote called "origin" in the resulting repository that
Junio C Hamano1de75722009-03-26 08:39:38895lets you fetch and pull from the bundle. The $GIT_DIR/config file in R2 will
Junio C Hamanoa3bb6eb2009-02-05 01:26:33896have an entry like this:</p></div>
Junio C Hamano601f3e52008-02-25 08:40:42897<div class="listingblock">
898<div class="content">
Junio C Hamano9d971152012-12-19 00:43:11899<pre><code>[remote "origin"]
Junio C Hamano61169122009-02-09 18:05:49900 url = /home/me/tmp/file.bundle
Junio C Hamano9d971152012-12-19 00:43:11901 fetch = refs/heads/*:refs/remotes/origin/*</code></pre>
Junio C Hamano6ac2f142007-03-01 01:24:56902</div></div>
Junio C Hamano68cf15a2010-11-06 01:01:59903<div class="paragraph"><p>To update the resulting mine.git repository, you can fetch or pull after
Junio C Hamano1de75722009-03-26 08:39:38904replacing the bundle stored at /home/me/tmp/file.bundle with incremental
905updates.</p></div>
Junio C Hamano68cf15a2010-11-06 01:01:59906<div class="paragraph"><p>After working some more in the original repository, you can create an
Junio C Hamano1de75722009-03-26 08:39:38907incremental bundle to update the other repository:</p></div>
Junio C Hamano4fd58d42007-09-30 00:51:14908<div class="listingblock">
909<div class="content">
Junio C Hamano9d971152012-12-19 00:43:11910<pre><code>machineA$ cd R1
Junio C Hamano61169122009-02-09 18:05:49911machineA$ git bundle create file.bundle lastR2bundle..master
Junio C Hamano9d971152012-12-19 00:43:11912machineA$ git tag -f lastR2bundle master</code></pre>
Junio C Hamano4fd58d42007-09-30 00:51:14913</div></div>
Junio C Hamano68cf15a2010-11-06 01:01:59914<div class="paragraph"><p>You then transfer the bundle to the other machine to replace
Junio C Hamano1de75722009-03-26 08:39:38915/home/me/tmp/file.bundle, and pull from it.</p></div>
Junio C Hamanoa3bb6eb2009-02-05 01:26:33916<div class="listingblock">
917<div class="content">
Junio C Hamano9d971152012-12-19 00:43:11918<pre><code>machineB$ cd R2
919machineB$ git pull</code></pre>
Junio C Hamanoa3bb6eb2009-02-05 01:26:33920</div></div>
Junio C Hamano68cf15a2010-11-06 01:01:59921<div class="paragraph"><p>If you know up to what commit the intended recipient repository should
Junio C Hamano1de75722009-03-26 08:39:38922have the necessary objects, you can use that knowledge to specify the
Junio C Hamanoa3bb6eb2009-02-05 01:26:33923basis, giving a cut-off point to limit the revisions and objects that go
Junio C Hamano2db3e752010-09-03 21:33:06924in the resulting bundle. The previous example used the lastR2bundle tag
Junio C Hamano1de75722009-03-26 08:39:38925for this purpose, but you can use any other options that you would give to
Junio C Hamanoa28a9202012-06-21 07:08:23926the <a href="git-log.html">git-log(1)</a> command. Here are more examples:</p></div>
Junio C Hamano68cf15a2010-11-06 01:01:59927<div class="paragraph"><p>You can use a tag that is present in both:</p></div>
Junio C Hamanoa3bb6eb2009-02-05 01:26:33928<div class="listingblock">
929<div class="content">
Junio C Hamano9d971152012-12-19 00:43:11930<pre><code>$ git bundle create mybundle v1.0.0..master</code></pre>
Junio C Hamanoa3bb6eb2009-02-05 01:26:33931</div></div>
Junio C Hamano68cf15a2010-11-06 01:01:59932<div class="paragraph"><p>You can use a basis based on time:</p></div>
Junio C Hamanoa3bb6eb2009-02-05 01:26:33933<div class="listingblock">
934<div class="content">
Junio C Hamano9d971152012-12-19 00:43:11935<pre><code>$ git bundle create mybundle --since=10.days master</code></pre>
Junio C Hamanoa3bb6eb2009-02-05 01:26:33936</div></div>
Junio C Hamano68cf15a2010-11-06 01:01:59937<div class="paragraph"><p>You can use the number of commits:</p></div>
Junio C Hamanoa3bb6eb2009-02-05 01:26:33938<div class="listingblock">
939<div class="content">
Junio C Hamano9d971152012-12-19 00:43:11940<pre><code>$ git bundle create mybundle -10 master</code></pre>
Junio C Hamanoa3bb6eb2009-02-05 01:26:33941</div></div>
Junio C Hamano9d971152012-12-19 00:43:11942<div class="paragraph"><p>You can run <code>git-bundle verify</code> to see if you can extract from a bundle
Junio C Hamano1de75722009-03-26 08:39:38943that was created with a basis:</p></div>
Junio C Hamanoa3bb6eb2009-02-05 01:26:33944<div class="listingblock">
945<div class="content">
Junio C Hamano9d971152012-12-19 00:43:11946<pre><code>$ git bundle verify mybundle</code></pre>
Junio C Hamanoa3bb6eb2009-02-05 01:26:33947</div></div>
Junio C Hamano68cf15a2010-11-06 01:01:59948<div class="paragraph"><p>This will list what commits you must have in order to extract from the
Junio C Hamano1de75722009-03-26 08:39:38949bundle and will error out if you do not have them.</p></div>
Junio C Hamano68cf15a2010-11-06 01:01:59950<div class="paragraph"><p>A bundle from a recipient repository&#8217;s point of view is just like a
Junio C Hamano1de75722009-03-26 08:39:38951regular repository which it fetches or pulls from. You can, for example, map
952references when fetching:</p></div>
Junio C Hamanoa3bb6eb2009-02-05 01:26:33953<div class="listingblock">
954<div class="content">
Junio C Hamano9d971152012-12-19 00:43:11955<pre><code>$ git fetch mybundle master:localRef</code></pre>
Junio C Hamanoa3bb6eb2009-02-05 01:26:33956</div></div>
Junio C Hamano68cf15a2010-11-06 01:01:59957<div class="paragraph"><p>You can also see what references it offers:</p></div>
Junio C Hamanoa3bb6eb2009-02-05 01:26:33958<div class="listingblock">
959<div class="content">
Junio C Hamano9d971152012-12-19 00:43:11960<pre><code>$ git ls-remote mybundle</code></pre>
Junio C Hamanoa3bb6eb2009-02-05 01:26:33961</div></div>
Junio C Hamano6ac2f142007-03-01 01:24:56962</div>
Junio C Hamano9d971152012-12-19 00:43:11963</div>
964<div class="sect1">
Junio C Hamanoba4b9282008-07-06 05:20:31965<h2 id="_git">GIT</h2>
Junio C Hamano6ac2f142007-03-01 01:24:56966<div class="sectionbody">
Junio C Hamanoa28a9202012-06-21 07:08:23967<div class="paragraph"><p>Part of the <a href="git.html">git(1)</a> suite</p></div>
Junio C Hamano6ac2f142007-03-01 01:24:56968</div>
Junio C Hamano7bd050f2011-09-22 06:32:22969</div>
Junio C Hamano9d971152012-12-19 00:43:11970</div>
Junio C Hamano7bd050f2011-09-22 06:32:22971<div id="footnotes"><hr /></div>
Junio C Hamano6ac2f142007-03-01 01:24:56972<div id="footer">
973<div id="footer-text">
Junio C Hamano076ffcc2013-02-06 05:13:21974Last updated 2013-02-05 21:07:26 PST
Junio C Hamano6ac2f142007-03-01 01:24:56975</div>
976</div>
977</body>
978</html>