blob: d2beace5b991913615d70f2b1bad22f26b03c194 [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" />
6<meta name="generator" content="AsciiDoc 8.6.8" />
Junio C Hamano68cf15a2010-11-06 01:01:597<title>git-whatchanged(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 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 Hamano1a4e8412005-12-27 08:17:2394 padding: 0;
95 margin: 0;
96}
97
Junio C Hamano9d971152012-12-19 00:43:1198
99#author {
Junio C Hamano1a4e8412005-12-27 08:17:23100 color: #527bbd;
Junio C Hamano1a4e8412005-12-27 08:17:23101 font-weight: bold;
Junio C Hamanoba4b9282008-07-06 05:20:31102 font-size: 1.1em;
Junio C Hamano1a4e8412005-12-27 08:17:23103}
Junio C Hamano9d971152012-12-19 00:43:11104#email {
Junio C Hamano1a4e8412005-12-27 08:17:23105}
Junio C Hamano9d971152012-12-19 00:43:11106#revnumber, #revdate, #revremark {
Junio C Hamano1a4e8412005-12-27 08:17:23107}
108
Junio C Hamano9d971152012-12-19 00:43:11109#footer {
Junio C Hamano1a4e8412005-12-27 08:17:23110 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 Hamano1a4e8412005-12-27 08:17:23116 float: left;
117 padding-bottom: 0.5em;
118}
Junio C Hamano9d971152012-12-19 00:43:11119#footer-badges {
Junio C Hamano1a4e8412005-12-27 08:17:23120 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 Hamano1a4e8412005-12-27 08:17:23129div.quoteblock, div.literalblock, div.listingblock, div.sidebarblock,
130div.admonitionblock {
Junio C Hamano7bd050f2011-09-22 06:32:22131 margin-top: 1.0em;
Junio C Hamano1a4e8412005-12-27 08:17:23132 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 Hamano1a4e8412005-12-27 08:17:23139}
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 Hamano1a4e8412005-12-27 08:17:23148 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 Hamano1a4e8412005-12-27 08:17:23171 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 Hamano1a4e8412005-12-27 08:17:23178 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 Hamano1a4e8412005-12-27 08:17:23187}
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 Hamano1a4e8412005-12-27 08:17:23191 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 Hamano1a4e8412005-12-27 08:17:23206
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 Hamano1a4e8412005-12-27 08:17:23218}
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 Hamano1a4e8412005-12-27 08:17:23223}
224
Junio C Hamano1a4e8412005-12-27 08:17:23225div.imageblock div.content { padding-left: 0; }
Junio C Hamano1a4e8412005-12-27 08:17:23226span.image img { border-style: none; }
Junio C Hamano68cf15a2010-11-06 01:01:59227a.image:visited { color: white; }
Junio C Hamano1a4e8412005-12-27 08:17:23228
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 Hamano1a4e8412005-12-27 08:17:23238}
239dd > *:first-child {
Junio C Hamano68cf15a2010-11-06 01:01:59240 margin-top: 0.1em;
Junio C Hamano1a4e8412005-12-27 08:17:23241}
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 Hamano1a4e8412005-12-27 08:17:23250 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 Hamano1a4e8412005-12-27 08:17:23268
Junio C Hamano1a4e8412005-12-27 08:17:23269tfoot {
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 Hamano1a4e8412005-12-27 08:17:23277 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 Hamano1a4e8412005-12-27 08:17:23287 vertical-align: top;
Junio C Hamano68cf15a2010-11-06 01:01:59288 font-style: normal;
Junio C Hamano1a4e8412005-12-27 08:17:23289 padding-right: 0.8em;
Junio C Hamano68cf15a2010-11-06 01:01:59290 color: navy;
Junio C Hamano1a4e8412005-12-27 08:17:23291}
Junio C Hamano68cf15a2010-11-06 01:01:59292td.hdlist2 {
Junio C Hamano1a4e8412005-12-27 08:17:23293 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 Hamano1a4e8412005-12-27 08:17:23303
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 Hamano1a4e8412005-12-27 08:17:23338}
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 Hamano1a4e8412005-12-27 08:17:23535
Junio C Hamano1a4e8412005-12-27 08:17:23536</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 Hamano1a4e8412005-12-27 08:17:23731</head>
Junio C Hamano9d971152012-12-19 00:43:11732<body class="manpage">
Junio C Hamano1a4e8412005-12-27 08:17:23733<div id="header">
734<h1>
735git-whatchanged(1) Manual Page
736</h1>
737<h2>NAME</h2>
738<div class="sectionbody">
739<p>git-whatchanged -
Junio C Hamano01078922006-03-10 00:31:47740 Show logs with difference each commit introduces
Junio C Hamano1a4e8412005-12-27 08:17:23741</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 Hamano1a4e8412005-12-27 08:17:23747<div class="sectionbody">
Junio C Hamano15567bc2011-07-23 00:51:59748<div class="verseblock">
Junio C Hamano9d971152012-12-19 00:43:11749<pre class="content"><em>git whatchanged</em> &lt;option&gt;&#8230;</pre>
750<div class="attribution">
Junio C Hamano15567bc2011-07-23 00:51:59751</div></div>
Junio C Hamano1a4e8412005-12-27 08:17:23752</div>
Junio C Hamano9d971152012-12-19 00:43:11753</div>
754<div class="sect1">
Junio C Hamanoba4b9282008-07-06 05:20:31755<h2 id="_description">DESCRIPTION</h2>
Junio C Hamano1a4e8412005-12-27 08:17:23756<div class="sectionbody">
Junio C Hamano68cf15a2010-11-06 01:01:59757<div class="paragraph"><p>Shows commit logs and diff output each commit introduces. The
Junio C Hamano1aa40d22010-01-21 17:46:43758command internally invokes <em>git rev-list</em> piped to
759<em>git diff-tree</em>, and takes command line options for both of
Junio C Hamanoba4b9282008-07-06 05:20:31760these commands.</p></div>
Junio C Hamano68cf15a2010-11-06 01:01:59761<div class="paragraph"><p>This manual page describes only the most frequently used options.</p></div>
Junio C Hamano1a4e8412005-12-27 08:17:23762</div>
Junio C Hamano9d971152012-12-19 00:43:11763</div>
764<div class="sect1">
Junio C Hamanoba4b9282008-07-06 05:20:31765<h2 id="_options">OPTIONS</h2>
Junio C Hamano1a4e8412005-12-27 08:17:23766<div class="sectionbody">
Junio C Hamano68cf15a2010-11-06 01:01:59767<div class="dlist"><dl>
768<dt class="hdlist1">
Junio C Hamano1a4e8412005-12-27 08:17:23769-p
770</dt>
771<dd>
772<p>
773 Show textual diffs, instead of the git internal diff
774 output format that is useful only to tell the changed
775 paths and their nature of changes.
776</p>
777</dd>
Junio C Hamano68cf15a2010-11-06 01:01:59778<dt class="hdlist1">
Junio C Hamanof9771f62007-01-17 17:42:30779-&lt;n&gt;
Junio C Hamano1a4e8412005-12-27 08:17:23780</dt>
781<dd>
782<p>
783 Limit output to &lt;n&gt; commits.
784</p>
785</dd>
Junio C Hamano68cf15a2010-11-06 01:01:59786<dt class="hdlist1">
Junio C Hamano1a4e8412005-12-27 08:17:23787&lt;since&gt;..&lt;until&gt;
788</dt>
789<dd>
790<p>
791 Limit output to between the two named commits (bottom
792 exclusive, top inclusive).
793</p>
794</dd>
Junio C Hamano68cf15a2010-11-06 01:01:59795<dt class="hdlist1">
Junio C Hamano1a4e8412005-12-27 08:17:23796-r
797</dt>
798<dd>
799<p>
800 Show git internal diff output, but for the whole tree,
801 not just the top level.
802</p>
803</dd>
Junio C Hamano68cf15a2010-11-06 01:01:59804<dt class="hdlist1">
Junio C Hamano1a4e8412005-12-27 08:17:23805-m
806</dt>
807<dd>
808<p>
809 By default, differences for merge commits are not shown.
810 With this flag, show differences to that commit from all
811 of its parents.
812</p>
Junio C Hamano68cf15a2010-11-06 01:01:59813<div class="paragraph"><p>However, it is not very useful in general, although it
Junio C Hamanoba4b9282008-07-06 05:20:31814<strong>is</strong> useful on a file-by-file basis.</p></div>
Junio C Hamano1a4e8412005-12-27 08:17:23815</dd>
Junio C Hamano68cf15a2010-11-06 01:01:59816<dt class="hdlist1">
Junio C Hamanod2179ef2010-10-22 04:12:17817--pretty[=&lt;format&gt;]
Junio C Hamano86bcccc2008-03-08 09:33:55818</dt>
Junio C Hamano68cf15a2010-11-06 01:01:59819<dt class="hdlist1">
Junio C Hamanod2179ef2010-10-22 04:12:17820--format=&lt;format&gt;
Junio C Hamano0a235222009-03-06 08:21:09821</dt>
Junio C Hamano86bcccc2008-03-08 09:33:55822<dd>
823<p>
824 Pretty-print the contents of the commit logs in a given format,
825 where <em>&lt;format&gt;</em> can be one of <em>oneline</em>, <em>short</em>, <em>medium</em>,
Junio C Hamanoe32ec8b2010-06-02 23:32:31826 <em>full</em>, <em>fuller</em>, <em>email</em>, <em>raw</em> and <em>format:&lt;string&gt;</em>. See
827 the "PRETTY FORMATS" section for some additional details for each
828 format. When omitted, the format defaults to <em>medium</em>.
Junio C Hamano86bcccc2008-03-08 09:33:55829</p>
Junio C Hamano68cf15a2010-11-06 01:01:59830<div class="paragraph"><p>Note: you can specify the default pretty format in the repository
Junio C Hamanoa28a9202012-06-21 07:08:23831configuration (see <a href="git-config.html">git-config(1)</a>).</p></div>
Junio C Hamano86bcccc2008-03-08 09:33:55832</dd>
Junio C Hamano68cf15a2010-11-06 01:01:59833<dt class="hdlist1">
Junio C Hamano86bcccc2008-03-08 09:33:55834--abbrev-commit
835</dt>
836<dd>
837<p>
838 Instead of showing the full 40-byte hexadecimal commit object
Junio C Hamano6efe3022009-01-13 16:47:56839 name, show only a partial prefix. Non default number of
Junio C Hamano86bcccc2008-03-08 09:33:55840 digits can be specified with "--abbrev=&lt;n&gt;" (which also modifies
841 diff output, if it is displayed).
842</p>
Junio C Hamano68cf15a2010-11-06 01:01:59843<div class="paragraph"><p>This should make "--pretty=oneline" a whole lot more readable for
Junio C Hamanoba4b9282008-07-06 05:20:31844people using 80-column terminals.</p></div>
Junio C Hamano86bcccc2008-03-08 09:33:55845</dd>
Junio C Hamano68cf15a2010-11-06 01:01:59846<dt class="hdlist1">
Junio C Hamanof93530e2011-05-25 23:59:59847--no-abbrev-commit
848</dt>
849<dd>
850<p>
851 Show the full 40-byte hexadecimal commit object name. This negates
Junio C Hamano9d971152012-12-19 00:43:11852 <code>--abbrev-commit</code> and those options which imply it such as
Junio C Hamanof93530e2011-05-25 23:59:59853 "--oneline". It also overrides the <em>log.abbrevCommit</em> variable.
854</p>
855</dd>
856<dt class="hdlist1">
Junio C Hamano0a235222009-03-06 08:21:09857--oneline
858</dt>
859<dd>
860<p>
861 This is a shorthand for "--pretty=oneline --abbrev-commit"
862 used together.
863</p>
864</dd>
Junio C Hamano68cf15a2010-11-06 01:01:59865<dt class="hdlist1">
Junio C Hamano86bcccc2008-03-08 09:33:55866--encoding[=&lt;encoding&gt;]
867</dt>
868<dd>
869<p>
870 The commit objects record the encoding used for the log message
871 in their encoding header; this option can be used to tell the
872 command to re-code the commit log message in the encoding
873 preferred by the user. For non plumbing commands this
874 defaults to UTF-8.
875</p>
876</dd>
Junio C Hamano68cf15a2010-11-06 01:01:59877<dt class="hdlist1">
Junio C Hamano60033462011-05-03 00:48:43878--notes[=&lt;ref&gt;]
Junio C Hamano57827fb2010-01-23 03:02:50879</dt>
880<dd>
881<p>
Junio C Hamanoa28a9202012-06-21 07:08:23882 Show the notes (see <a href="git-notes.html">git-notes(1)</a>) that annotate the
Junio C Hamano57827fb2010-01-23 03:02:50883 commit, when showing the commit log message. This is the default
Junio C Hamano9d971152012-12-19 00:43:11884 for <code>git log</code>, <code>git show</code> and <code>git whatchanged</code> commands when
885 there is no <code>--pretty</code>, <code>--format</code> nor <code>--oneline</code> option given
Junio C Hamano60033462011-05-03 00:48:43886 on the command line.
Junio C Hamano57827fb2010-01-23 03:02:50887</p>
Junio C Hamano60033462011-05-03 00:48:43888<div class="paragraph"><p>By default, the notes shown are from the notes refs listed in the
889<em>core.notesRef</em> and <em>notes.displayRef</em> variables (or corresponding
Junio C Hamanoa28a9202012-06-21 07:08:23890environment overrides). See <a href="git-config.html">git-config(1)</a> for more details.</p></div>
Junio C Hamano60033462011-05-03 00:48:43891<div class="paragraph"><p>With an optional <em>&lt;ref&gt;</em> argument, show this notes ref instead of the
Junio C Hamano9d971152012-12-19 00:43:11892default notes ref(s). The ref is taken to be in <code>refs/notes/</code> if it
Junio C Hamano60033462011-05-03 00:48:43893is not qualified.</p></div>
894<div class="paragraph"><p>Multiple --notes options can be combined to control which notes are
895being displayed. Examples: "--notes=foo" will show only notes from
896"refs/notes/foo"; "--notes=foo --notes" will show both notes from
897"refs/notes/foo" and from the default notes ref(s).</p></div>
Junio C Hamano31667362010-03-25 00:38:53898</dd>
Junio C Hamano68cf15a2010-11-06 01:01:59899<dt class="hdlist1">
Junio C Hamano60033462011-05-03 00:48:43900--no-notes
901</dt>
902<dd>
903<p>
Junio C Hamano9d971152012-12-19 00:43:11904 Do not show notes. This negates the above <code>--notes</code> option, by
Junio C Hamano60033462011-05-03 00:48:43905 resetting the list of notes refs from which notes are shown.
906 Options are parsed in the order given on the command line, so e.g.
907 "--notes --notes=foo --no-notes --notes=bar" will only show notes
908 from "refs/notes/bar".
909</p>
910</dd>
911<dt class="hdlist1">
912--show-notes[=&lt;ref&gt;]
913</dt>
914<dt class="hdlist1">
Junio C Hamano31667362010-03-25 00:38:53915--[no-]standard-notes
916</dt>
917<dd>
918<p>
Junio C Hamano60033462011-05-03 00:48:43919 These options are deprecated. Use the above --notes/--no-notes
920 options instead.
Junio C Hamano31667362010-03-25 00:38:53921</p>
Junio C Hamano57827fb2010-01-23 03:02:50922</dd>
Junio C Hamano0acb1ae2012-09-24 21:28:13923<dt class="hdlist1">
924--show-signature
925</dt>
926<dd>
927<p>
928 Check the validity of a signed commit object by passing the signature
Junio C Hamano9d971152012-12-19 00:43:11929 to <code>gpg --verify</code> and show the output.
Junio C Hamano0acb1ae2012-09-24 21:28:13930</p>
931</dd>
Junio C Hamanoba4b9282008-07-06 05:20:31932</dl></div>
Junio C Hamano1a4e8412005-12-27 08:17:23933</div>
Junio C Hamano9d971152012-12-19 00:43:11934</div>
935<div class="sect1">
Junio C Hamanoba4b9282008-07-06 05:20:31936<h2 id="_pretty_formats">PRETTY FORMATS</h2>
Junio C Hamano86bcccc2008-03-08 09:33:55937<div class="sectionbody">
Junio C Hamano68cf15a2010-11-06 01:01:59938<div class="paragraph"><p>If the commit is a merge, and if the pretty-format
Junio C Hamano86bcccc2008-03-08 09:33:55939is not <em>oneline</em>, <em>email</em> or <em>raw</em>, an additional line is
940inserted before the <em>Author:</em> line. This line begins with
941"Merge: " and the sha1s of ancestral commits are printed,
942separated by spaces. Note that the listed commits may not
943necessarily be the list of the <strong>direct</strong> parent commits if you
944have limited your view of history: for example, if you are
945only interested in changes related to a certain directory or
Junio C Hamanoba4b9282008-07-06 05:20:31946file.</p></div>
Junio C Hamano68cf15a2010-11-06 01:01:59947<div class="paragraph"><p>There are several built-in formats, and you can define
Junio C Hamanoa574a092010-06-13 19:57:10948additional formats by setting a pretty.&lt;name&gt;
949config option to either another format name, or a
950<em>format:</em> string, as described below (see
Junio C Hamanoa28a9202012-06-21 07:08:23951<a href="git-config.html">git-config(1)</a>). Here are the details of the
Junio C Hamanoa574a092010-06-13 19:57:10952built-in formats:</p></div>
Junio C Hamano68cf15a2010-11-06 01:01:59953<div class="ulist"><ul>
Junio C Hamano86bcccc2008-03-08 09:33:55954<li>
955<p>
956<em>oneline</em>
957</p>
958<div class="literalblock">
959<div class="content">
Junio C Hamano9d971152012-12-19 00:43:11960<pre><code>&lt;sha1&gt; &lt;title line&gt;</code></pre>
Junio C Hamano86bcccc2008-03-08 09:33:55961</div></div>
Junio C Hamano68cf15a2010-11-06 01:01:59962<div class="paragraph"><p>This is designed to be as compact as possible.</p></div>
Junio C Hamano86bcccc2008-03-08 09:33:55963</li>
964<li>
965<p>
966<em>short</em>
967</p>
968<div class="literalblock">
969<div class="content">
Junio C Hamano9d971152012-12-19 00:43:11970<pre><code>commit &lt;sha1&gt;
971Author: &lt;author&gt;</code></pre>
Junio C Hamano86bcccc2008-03-08 09:33:55972</div></div>
973<div class="literalblock">
974<div class="content">
Junio C Hamano9d971152012-12-19 00:43:11975<pre><code>&lt;title line&gt;</code></pre>
Junio C Hamano86bcccc2008-03-08 09:33:55976</div></div>
977</li>
978<li>
979<p>
980<em>medium</em>
981</p>
982<div class="literalblock">
983<div class="content">
Junio C Hamano9d971152012-12-19 00:43:11984<pre><code>commit &lt;sha1&gt;
Junio C Hamano86bcccc2008-03-08 09:33:55985Author: &lt;author&gt;
Junio C Hamano9d971152012-12-19 00:43:11986Date: &lt;author date&gt;</code></pre>
Junio C Hamano86bcccc2008-03-08 09:33:55987</div></div>
988<div class="literalblock">
989<div class="content">
Junio C Hamano9d971152012-12-19 00:43:11990<pre><code>&lt;title line&gt;</code></pre>
Junio C Hamano86bcccc2008-03-08 09:33:55991</div></div>
992<div class="literalblock">
993<div class="content">
Junio C Hamano9d971152012-12-19 00:43:11994<pre><code>&lt;full commit message&gt;</code></pre>
Junio C Hamano86bcccc2008-03-08 09:33:55995</div></div>
996</li>
997<li>
998<p>
999<em>full</em>
1000</p>
1001<div class="literalblock">
1002<div class="content">
Junio C Hamano9d971152012-12-19 00:43:111003<pre><code>commit &lt;sha1&gt;
Junio C Hamano86bcccc2008-03-08 09:33:551004Author: &lt;author&gt;
Junio C Hamano9d971152012-12-19 00:43:111005Commit: &lt;committer&gt;</code></pre>
Junio C Hamano86bcccc2008-03-08 09:33:551006</div></div>
1007<div class="literalblock">
1008<div class="content">
Junio C Hamano9d971152012-12-19 00:43:111009<pre><code>&lt;title line&gt;</code></pre>
Junio C Hamano86bcccc2008-03-08 09:33:551010</div></div>
1011<div class="literalblock">
1012<div class="content">
Junio C Hamano9d971152012-12-19 00:43:111013<pre><code>&lt;full commit message&gt;</code></pre>
Junio C Hamano86bcccc2008-03-08 09:33:551014</div></div>
1015</li>
1016<li>
1017<p>
1018<em>fuller</em>
1019</p>
1020<div class="literalblock">
1021<div class="content">
Junio C Hamano9d971152012-12-19 00:43:111022<pre><code>commit &lt;sha1&gt;
Junio C Hamano6a3c8272008-12-19 21:38:181023Author: &lt;author&gt;
Junio C Hamanoba4b9282008-07-06 05:20:311024AuthorDate: &lt;author date&gt;
Junio C Hamano6a3c8272008-12-19 21:38:181025Commit: &lt;committer&gt;
Junio C Hamano9d971152012-12-19 00:43:111026CommitDate: &lt;committer date&gt;</code></pre>
Junio C Hamano86bcccc2008-03-08 09:33:551027</div></div>
1028<div class="literalblock">
1029<div class="content">
Junio C Hamano9d971152012-12-19 00:43:111030<pre><code>&lt;title line&gt;</code></pre>
Junio C Hamano86bcccc2008-03-08 09:33:551031</div></div>
1032<div class="literalblock">
1033<div class="content">
Junio C Hamano9d971152012-12-19 00:43:111034<pre><code>&lt;full commit message&gt;</code></pre>
Junio C Hamano86bcccc2008-03-08 09:33:551035</div></div>
1036</li>
1037<li>
1038<p>
1039<em>email</em>
1040</p>
1041<div class="literalblock">
1042<div class="content">
Junio C Hamano9d971152012-12-19 00:43:111043<pre><code>From &lt;sha1&gt; &lt;date&gt;
Junio C Hamano86bcccc2008-03-08 09:33:551044From: &lt;author&gt;
Junio C Hamanoba4b9282008-07-06 05:20:311045Date: &lt;author date&gt;
Junio C Hamano9d971152012-12-19 00:43:111046Subject: [PATCH] &lt;title line&gt;</code></pre>
Junio C Hamano86bcccc2008-03-08 09:33:551047</div></div>
1048<div class="literalblock">
1049<div class="content">
Junio C Hamano9d971152012-12-19 00:43:111050<pre><code>&lt;full commit message&gt;</code></pre>
Junio C Hamano86bcccc2008-03-08 09:33:551051</div></div>
1052</li>
1053<li>
1054<p>
1055<em>raw</em>
1056</p>
Junio C Hamano68cf15a2010-11-06 01:01:591057<div class="paragraph"><p>The <em>raw</em> format shows the entire commit exactly as
Junio C Hamano86bcccc2008-03-08 09:33:551058stored in the commit object. Notably, the SHA1s are
1059displayed in full, regardless of whether --abbrev or
1060--no-abbrev are used, and <em>parents</em> information show the
1061true parent commits, without taking grafts nor history
Junio C Hamanoba4b9282008-07-06 05:20:311062simplification into account.</p></div>
Junio C Hamano86bcccc2008-03-08 09:33:551063</li>
1064<li>
1065<p>
Junio C Hamanoe32ec8b2010-06-02 23:32:311066<em>format:&lt;string&gt;</em>
Junio C Hamano86bcccc2008-03-08 09:33:551067</p>
Junio C Hamano68cf15a2010-11-06 01:01:591068<div class="paragraph"><p>The <em>format:&lt;string&gt;</em> format allows you to specify which information
Junio C Hamano86bcccc2008-03-08 09:33:551069you want to show. It works a little bit like printf format,
1070with the notable exception that you get a newline with <em>%n</em>
Junio C Hamanoba4b9282008-07-06 05:20:311071instead of <em>\n</em>.</p></div>
Junio C Hamano68cf15a2010-11-06 01:01:591072<div class="paragraph"><p>E.g, <em>format:"The author of %h was %an, %ar%nThe title was &gt;&gt;%s&lt;&lt;%n"</em>
Junio C Hamanoba4b9282008-07-06 05:20:311073would show something like this:</p></div>
Junio C Hamano86bcccc2008-03-08 09:33:551074<div class="listingblock">
1075<div class="content">
Junio C Hamano9d971152012-12-19 00:43:111076<pre><code>The author of fe6e0ee was Junio C Hamano, 23 hours ago
1077The title was &gt;&gt;t4119: test autocomputing -p&lt;n&gt; for traditional diff input.&lt;&lt;</code></pre>
Junio C Hamano86bcccc2008-03-08 09:33:551078</div></div>
Junio C Hamano68cf15a2010-11-06 01:01:591079<div class="paragraph"><p>The placeholders are:</p></div>
1080<div class="ulist"><ul>
Junio C Hamano86bcccc2008-03-08 09:33:551081<li>
1082<p>
1083<em>%H</em>: commit hash
1084</p>
1085</li>
1086<li>
1087<p>
1088<em>%h</em>: abbreviated commit hash
1089</p>
1090</li>
1091<li>
1092<p>
1093<em>%T</em>: tree hash
1094</p>
1095</li>
1096<li>
1097<p>
1098<em>%t</em>: abbreviated tree hash
1099</p>
1100</li>
1101<li>
1102<p>
1103<em>%P</em>: parent hashes
1104</p>
1105</li>
1106<li>
1107<p>
1108<em>%p</em>: abbreviated parent hashes
1109</p>
1110</li>
1111<li>
1112<p>
1113<em>%an</em>: author name
1114</p>
1115</li>
1116<li>
1117<p>
Junio C Hamanoa28a9202012-06-21 07:08:231118<em>%aN</em>: author name (respecting .mailmap, see <a href="git-shortlog.html">git-shortlog(1)</a> or <a href="git-blame.html">git-blame(1)</a>)
Junio C Hamanof5a93622008-07-16 03:23:571119</p>
1120</li>
1121<li>
1122<p>
Junio C Hamano86bcccc2008-03-08 09:33:551123<em>%ae</em>: author email
1124</p>
1125</li>
1126<li>
1127<p>
Junio C Hamanoa28a9202012-06-21 07:08:231128<em>%aE</em>: author email (respecting .mailmap, see <a href="git-shortlog.html">git-shortlog(1)</a> or <a href="git-blame.html">git-blame(1)</a>)
Junio C Hamano8bc410e2009-02-15 10:38:191129</p>
1130</li>
1131<li>
1132<p>
Junio C Hamanoa387df32008-08-29 08:56:581133<em>%ad</em>: author date (format respects --date= option)
Junio C Hamano86bcccc2008-03-08 09:33:551134</p>
1135</li>
1136<li>
1137<p>
1138<em>%aD</em>: author date, RFC2822 style
1139</p>
1140</li>
1141<li>
1142<p>
1143<em>%ar</em>: author date, relative
1144</p>
1145</li>
1146<li>
1147<p>
1148<em>%at</em>: author date, UNIX timestamp
1149</p>
1150</li>
1151<li>
1152<p>
1153<em>%ai</em>: author date, ISO 8601 format
1154</p>
1155</li>
1156<li>
1157<p>
1158<em>%cn</em>: committer name
1159</p>
1160</li>
1161<li>
1162<p>
Junio C Hamanoa28a9202012-06-21 07:08:231163<em>%cN</em>: committer name (respecting .mailmap, see <a href="git-shortlog.html">git-shortlog(1)</a> or <a href="git-blame.html">git-blame(1)</a>)
Junio C Hamanof5a93622008-07-16 03:23:571164</p>
1165</li>
1166<li>
1167<p>
Junio C Hamano86bcccc2008-03-08 09:33:551168<em>%ce</em>: committer email
1169</p>
1170</li>
1171<li>
1172<p>
Junio C Hamanoa28a9202012-06-21 07:08:231173<em>%cE</em>: committer email (respecting .mailmap, see <a href="git-shortlog.html">git-shortlog(1)</a> or <a href="git-blame.html">git-blame(1)</a>)
Junio C Hamano8bc410e2009-02-15 10:38:191174</p>
1175</li>
1176<li>
1177<p>
Junio C Hamano86bcccc2008-03-08 09:33:551178<em>%cd</em>: committer date
1179</p>
1180</li>
1181<li>
1182<p>
1183<em>%cD</em>: committer date, RFC2822 style
1184</p>
1185</li>
1186<li>
1187<p>
1188<em>%cr</em>: committer date, relative
1189</p>
1190</li>
1191<li>
1192<p>
1193<em>%ct</em>: committer date, UNIX timestamp
1194</p>
1195</li>
1196<li>
1197<p>
1198<em>%ci</em>: committer date, ISO 8601 format
1199</p>
1200</li>
1201<li>
1202<p>
Junio C Hamanoa28a9202012-06-21 07:08:231203<em>%d</em>: ref names, like the --decorate option of <a href="git-log.html">git-log(1)</a>
Junio C Hamano5e4d8de2008-09-19 06:27:021204</p>
1205</li>
1206<li>
1207<p>
Junio C Hamano86bcccc2008-03-08 09:33:551208<em>%e</em>: encoding
1209</p>
1210</li>
1211<li>
1212<p>
1213<em>%s</em>: subject
1214</p>
1215</li>
1216<li>
1217<p>
Junio C Hamano5f9a6f02009-04-06 08:26:561218<em>%f</em>: sanitized subject line, suitable for a filename
1219</p>
1220</li>
1221<li>
1222<p>
Junio C Hamano86bcccc2008-03-08 09:33:551223<em>%b</em>: body
1224</p>
1225</li>
1226<li>
1227<p>
Junio C Hamanocb39aea2010-05-09 07:24:481228<em>%B</em>: raw body (unwrapped subject and body)
1229</p>
1230</li>
1231<li>
1232<p>
Junio C Hamano3b70d3c2009-11-21 17:37:371233<em>%N</em>: commit notes
1234</p>
1235</li>
1236<li>
1237<p>
Junio C Hamano0acb1ae2012-09-24 21:28:131238<em>%GG</em>: raw verification message from GPG for a signed commit
1239</p>
1240</li>
1241<li>
1242<p>
1243<em>%G?</em>: show either "G" for Good or "B" for Bad for a signed commit
1244</p>
1245</li>
1246<li>
1247<p>
1248<em>%GS</em>: show the name of the signer for a signed commit
1249</p>
1250</li>
1251<li>
1252<p>
Junio C Hamano9d971152012-12-19 00:43:111253<em>%gD</em>: reflog selector, e.g., <code>refs/stash@{1}</code>
Junio C Hamanoc21ab052009-10-31 04:03:551254</p>
1255</li>
1256<li>
1257<p>
Junio C Hamano9d971152012-12-19 00:43:111258<em>%gd</em>: shortened reflog selector, e.g., <code>stash@{1}</code>
Junio C Hamanoc21ab052009-10-31 04:03:551259</p>
1260</li>
1261<li>
1262<p>
Junio C Hamano962f3a32011-12-22 20:21:441263<em>%gn</em>: reflog identity name
1264</p>
1265</li>
1266<li>
1267<p>
Junio C Hamanoa28a9202012-06-21 07:08:231268<em>%gN</em>: reflog identity name (respecting .mailmap, see <a href="git-shortlog.html">git-shortlog(1)</a> or <a href="git-blame.html">git-blame(1)</a>)
Junio C Hamano962f3a32011-12-22 20:21:441269</p>
1270</li>
1271<li>
1272<p>
1273<em>%ge</em>: reflog identity email
1274</p>
1275</li>
1276<li>
1277<p>
Junio C Hamanoa28a9202012-06-21 07:08:231278<em>%gE</em>: reflog identity email (respecting .mailmap, see <a href="git-shortlog.html">git-shortlog(1)</a> or <a href="git-blame.html">git-blame(1)</a>)
Junio C Hamano962f3a32011-12-22 20:21:441279</p>
1280</li>
1281<li>
1282<p>
Junio C Hamanoc21ab052009-10-31 04:03:551283<em>%gs</em>: reflog subject
1284</p>
1285</li>
1286<li>
1287<p>
Junio C Hamano86bcccc2008-03-08 09:33:551288<em>%Cred</em>: switch color to red
1289</p>
1290</li>
1291<li>
1292<p>
1293<em>%Cgreen</em>: switch color to green
1294</p>
1295</li>
1296<li>
1297<p>
1298<em>%Cblue</em>: switch color to blue
1299</p>
1300</li>
1301<li>
1302<p>
1303<em>%Creset</em>: reset color
1304</p>
1305</li>
1306<li>
1307<p>
Junio C Hamanoabad6da2013-01-06 09:06:321308<em>%C(&#8230;)</em>: color specification, as described in color.branch.* config option;
1309 adding <code>auto,</code> at the beginning will emit color only when colors are
1310 enabled for log output (by <code>color.diff</code>, <code>color.ui</code>, or <code>--color</code>, and
1311 respecting the <code>auto</code> settings of the former if we are going to a
1312 terminal)
Junio C Hamanocc0cb312009-01-22 03:38:501313</p>
1314</li>
1315<li>
1316<p>
Junio C Hamano86bcccc2008-03-08 09:33:551317<em>%m</em>: left, right or boundary mark
1318</p>
1319</li>
1320<li>
1321<p>
1322<em>%n</em>: newline
1323</p>
1324</li>
Junio C Hamanob78d2592008-04-09 09:39:081325<li>
1326<p>
Junio C Hamanoa9701f02010-01-21 00:42:161327<em>%%</em>: a raw <em>%</em>
1328</p>
1329</li>
1330<li>
1331<p>
Junio C Hamanob78d2592008-04-09 09:39:081332<em>%x00</em>: print a byte from a hex code
1333</p>
1334</li>
Junio C Hamanobf984de2009-11-23 06:11:191335<li>
1336<p>
1337<em>%w([&lt;w&gt;[,&lt;i1&gt;[,&lt;i2&gt;]]])</em>: switch line wrapping, like the -w option of
Junio C Hamanoa28a9202012-06-21 07:08:231338 <a href="git-shortlog.html">git-shortlog(1)</a>.
Junio C Hamanobf984de2009-11-23 06:11:191339</p>
1340</li>
Junio C Hamanoba4b9282008-07-06 05:20:311341</ul></div>
Junio C Hamano86bcccc2008-03-08 09:33:551342</li>
Junio C Hamanoc21ab052009-10-31 04:03:551343</ul></div>
1344<div class="admonitionblock">
1345<table><tr>
1346<td class="icon">
1347<div class="title">Note</div>
1348</td>
1349<td class="content">Some placeholders may depend on other options given to the
Junio C Hamano9d971152012-12-19 00:43:111350revision traversal engine. For example, the <code>%g*</code> reflog options will
Junio C Hamanoc21ab052009-10-31 04:03:551351insert an empty string unless we are traversing reflog entries (e.g., by
Junio C Hamano9d971152012-12-19 00:43:111352<code>git log -g</code>). The <code>%d</code> placeholder will use the "short" decoration
1353format if <code>--decorate</code> was not already provided on the command line.</td>
Junio C Hamanoc21ab052009-10-31 04:03:551354</tr></table>
1355</div>
Junio C Hamano9d971152012-12-19 00:43:111356<div class="paragraph"><p>If you add a <code>+</code> (plus sign) after <em>%</em> of a placeholder, a line-feed
Junio C Hamano2bd8a742009-12-01 21:16:591357is inserted immediately before the expansion if and only if the
1358placeholder expands to a non-empty string.</p></div>
Junio C Hamano9d971152012-12-19 00:43:111359<div class="paragraph"><p>If you add a <code>-</code> (minus sign) after <em>%</em> of a placeholder, line-feeds that
Junio C Hamano2bd8a742009-12-01 21:16:591360immediately precede the expansion are deleted if and only if the
1361placeholder expands to an empty string.</p></div>
Junio C Hamano68cf15a2010-11-06 01:01:591362<div class="paragraph"><p>If you add a ` ` (space) after <em>%</em> of a placeholder, a space
Junio C Hamano89a57342010-06-22 23:22:551363is inserted immediately before the expansion if and only if the
1364placeholder expands to a non-empty string.</p></div>
Junio C Hamano68cf15a2010-11-06 01:01:591365<div class="ulist"><ul>
Junio C Hamano6fb124c2008-06-13 10:04:011366<li>
1367<p>
1368<em>tformat:</em>
1369</p>
Junio C Hamano68cf15a2010-11-06 01:01:591370<div class="paragraph"><p>The <em>tformat:</em> format works exactly like <em>format:</em>, except that it
Junio C Hamano6fb124c2008-06-13 10:04:011371provides "terminator" semantics instead of "separator" semantics. In
1372other words, each commit has the message terminator character (usually a
1373newline) appended, rather than a separator placed between entries.
1374This means that the final entry of a single-line format will be properly
1375terminated with a new line, just as the "oneline" format does.
Junio C Hamanoba4b9282008-07-06 05:20:311376For example:</p></div>
Junio C Hamano6fb124c2008-06-13 10:04:011377<div class="listingblock">
1378<div class="content">
Junio C Hamano9d971152012-12-19 00:43:111379<pre><code>$ git log -2 --pretty=format:%h 4da45bef \
Junio C Hamano6fb124c2008-06-13 10:04:011380 | perl -pe '$_ .= " -- NO NEWLINE\n" unless /\n/'
13814da45be
13827134973 -- NO NEWLINE
1383
1384$ git log -2 --pretty=tformat:%h 4da45bef \
1385 | perl -pe '$_ .= " -- NO NEWLINE\n" unless /\n/'
13864da45be
Junio C Hamano9d971152012-12-19 00:43:1113877134973</code></pre>
Junio C Hamano6fb124c2008-06-13 10:04:011388</div></div>
Junio C Hamano9d971152012-12-19 00:43:111389<div class="paragraph"><p>In addition, any unrecognized string that has a <code>%</code> in it is interpreted
1390as if it has <code>tformat:</code> in front of it. For example, these two are
Junio C Hamano0a235222009-03-06 08:21:091391equivalent:</p></div>
1392<div class="listingblock">
1393<div class="content">
Junio C Hamano9d971152012-12-19 00:43:111394<pre><code>$ git log -2 --pretty=tformat:%h 4da45bef
1395$ git log -2 --pretty=%h 4da45bef</code></pre>
Junio C Hamano0a235222009-03-06 08:21:091396</div></div>
Junio C Hamano6fb124c2008-06-13 10:04:011397</li>
Junio C Hamanoba4b9282008-07-06 05:20:311398</ul></div>
Junio C Hamano86bcccc2008-03-08 09:33:551399</div>
Junio C Hamano9d971152012-12-19 00:43:111400</div>
1401<div class="sect1">
Junio C Hamanoba4b9282008-07-06 05:20:311402<h2 id="_examples">Examples</h2>
Junio C Hamano1a4e8412005-12-27 08:17:231403<div class="sectionbody">
Junio C Hamano68cf15a2010-11-06 01:01:591404<div class="dlist"><dl>
1405<dt class="hdlist1">
Junio C Hamano9d971152012-12-19 00:43:111406<code>git whatchanged -p v2.6.12.. include/scsi drivers/scsi</code>
Junio C Hamano1a4e8412005-12-27 08:17:231407</dt>
1408<dd>
1409<p>
1410 Show as patches the commits since version <em>v2.6.12</em> that changed
1411 any file in the include/scsi or drivers/scsi subdirectories
1412</p>
1413</dd>
Junio C Hamano68cf15a2010-11-06 01:01:591414<dt class="hdlist1">
Junio C Hamano9d971152012-12-19 00:43:111415<code>git whatchanged --since="2 weeks ago" -- gitk</code>
Junio C Hamano1a4e8412005-12-27 08:17:231416</dt>
1417<dd>
1418<p>
1419 Show the changes during the last two weeks to the file <em>gitk</em>.
1420 The "--" is necessary to avoid confusion with the <strong>branch</strong> named
1421 <em>gitk</em>
1422</p>
1423</dd>
Junio C Hamanoba4b9282008-07-06 05:20:311424</dl></div>
Junio C Hamano1a4e8412005-12-27 08:17:231425</div>
Junio C Hamano9d971152012-12-19 00:43:111426</div>
1427<div class="sect1">
Junio C Hamanoba4b9282008-07-06 05:20:311428<h2 id="_git">GIT</h2>
Junio C Hamano1a4e8412005-12-27 08:17:231429<div class="sectionbody">
Junio C Hamanoa28a9202012-06-21 07:08:231430<div class="paragraph"><p>Part of the <a href="git.html">git(1)</a> suite</p></div>
Junio C Hamano1a4e8412005-12-27 08:17:231431</div>
Junio C Hamano7bd050f2011-09-22 06:32:221432</div>
Junio C Hamano9d971152012-12-19 00:43:111433</div>
Junio C Hamano7bd050f2011-09-22 06:32:221434<div id="footnotes"><hr /></div>
Junio C Hamano1a4e8412005-12-27 08:17:231435<div id="footer">
1436<div id="footer-text">
Junio C Hamanob76a6862012-05-02 22:02:461437Last updated 2012-05-02 15:00:44 PDT
Junio C Hamano1a4e8412005-12-27 08:17:231438</div>
1439</div>
1440</body>
1441</html>