PageRenderTime 62ms CodeModel.GetById 33ms RepoModel.GetById 0ms app.codeStats 0ms

/git-var.html

https://github.com/boa0332/git-htmldocs
HTML | 683 lines | 619 code | 64 blank | 0 comment | 0 complexity | da85f1bcbcbcfc9db38e87e752fdb7c0 MD5 | raw file
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
  2. "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
  3. <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
  4. <head>
  5. <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
  6. <meta name="generator" content="AsciiDoc 8.5.2" />
  7. <title>git-var(1)</title>
  8. <style type="text/css">
  9. /* Debug borders */
  10. p, li, dt, dd, div, pre, h1, h2, h3, h4, h5, h6 {
  11. /*
  12. border: 1px solid red;
  13. */
  14. }
  15. body {
  16. margin: 1em 5% 1em 5%;
  17. }
  18. a {
  19. color: blue;
  20. text-decoration: underline;
  21. }
  22. a:visited {
  23. color: fuchsia;
  24. }
  25. em {
  26. font-style: italic;
  27. color: navy;
  28. }
  29. strong {
  30. font-weight: bold;
  31. color: #083194;
  32. }
  33. tt {
  34. color: navy;
  35. }
  36. h1, h2, h3, h4, h5, h6 {
  37. color: #527bbd;
  38. font-family: sans-serif;
  39. margin-top: 1.2em;
  40. margin-bottom: 0.5em;
  41. line-height: 1.3;
  42. }
  43. h1, h2, h3 {
  44. border-bottom: 2px solid silver;
  45. }
  46. h2 {
  47. padding-top: 0.5em;
  48. }
  49. h3 {
  50. float: left;
  51. }
  52. h3 + * {
  53. clear: left;
  54. }
  55. div.sectionbody {
  56. font-family: serif;
  57. margin-left: 0;
  58. }
  59. hr {
  60. border: 1px solid silver;
  61. }
  62. p {
  63. margin-top: 0.5em;
  64. margin-bottom: 0.5em;
  65. }
  66. ul, ol, li > p {
  67. margin-top: 0;
  68. }
  69. pre {
  70. padding: 0;
  71. margin: 0;
  72. }
  73. span#author {
  74. color: #527bbd;
  75. font-family: sans-serif;
  76. font-weight: bold;
  77. font-size: 1.1em;
  78. }
  79. span#email {
  80. }
  81. span#revnumber, span#revdate, span#revremark {
  82. font-family: sans-serif;
  83. }
  84. div#footer {
  85. font-family: sans-serif;
  86. font-size: small;
  87. border-top: 2px solid silver;
  88. padding-top: 0.5em;
  89. margin-top: 4.0em;
  90. }
  91. div#footer-text {
  92. float: left;
  93. padding-bottom: 0.5em;
  94. }
  95. div#footer-badges {
  96. float: right;
  97. padding-bottom: 0.5em;
  98. }
  99. div#preamble {
  100. margin-top: 1.5em;
  101. margin-bottom: 1.5em;
  102. }
  103. div.tableblock, div.imageblock, div.exampleblock, div.verseblock,
  104. div.quoteblock, div.literalblock, div.listingblock, div.sidebarblock,
  105. div.admonitionblock {
  106. margin-top: 1.0em;
  107. margin-bottom: 1.5em;
  108. }
  109. div.admonitionblock {
  110. margin-top: 2.0em;
  111. margin-bottom: 2.0em;
  112. margin-right: 10%;
  113. color: #606060;
  114. }
  115. div.content { /* Block element content. */
  116. padding: 0;
  117. }
  118. /* Block element titles. */
  119. div.title, caption.title {
  120. color: #527bbd;
  121. font-family: sans-serif;
  122. font-weight: bold;
  123. text-align: left;
  124. margin-top: 1.0em;
  125. margin-bottom: 0.5em;
  126. }
  127. div.title + * {
  128. margin-top: 0;
  129. }
  130. td div.title:first-child {
  131. margin-top: 0.0em;
  132. }
  133. div.content div.title:first-child {
  134. margin-top: 0.0em;
  135. }
  136. div.content + div.title {
  137. margin-top: 0.0em;
  138. }
  139. div.sidebarblock > div.content {
  140. background: #ffffee;
  141. border: 1px solid silver;
  142. padding: 0.5em;
  143. }
  144. div.listingblock > div.content {
  145. border: 1px solid silver;
  146. background: #f4f4f4;
  147. padding: 0.5em;
  148. }
  149. div.quoteblock, div.verseblock {
  150. padding-left: 1.0em;
  151. margin-left: 1.0em;
  152. margin-right: 10%;
  153. border-left: 5px solid #dddddd;
  154. color: #777777;
  155. }
  156. div.quoteblock > div.attribution {
  157. padding-top: 0.5em;
  158. text-align: right;
  159. }
  160. div.verseblock > div.content {
  161. white-space: pre;
  162. }
  163. div.verseblock > div.attribution {
  164. padding-top: 0.75em;
  165. text-align: left;
  166. }
  167. /* DEPRECATED: Pre version 8.2.7 verse style literal block. */
  168. div.verseblock + div.attribution {
  169. text-align: left;
  170. }
  171. div.admonitionblock .icon {
  172. vertical-align: top;
  173. font-size: 1.1em;
  174. font-weight: bold;
  175. text-decoration: underline;
  176. color: #527bbd;
  177. padding-right: 0.5em;
  178. }
  179. div.admonitionblock td.content {
  180. padding-left: 0.5em;
  181. border-left: 3px solid #dddddd;
  182. }
  183. div.exampleblock > div.content {
  184. border-left: 3px solid #dddddd;
  185. padding-left: 0.5em;
  186. }
  187. div.imageblock div.content { padding-left: 0; }
  188. span.image img { border-style: none; }
  189. a.image:visited { color: white; }
  190. dl {
  191. margin-top: 0.8em;
  192. margin-bottom: 0.8em;
  193. }
  194. dt {
  195. margin-top: 0.5em;
  196. margin-bottom: 0;
  197. font-style: normal;
  198. color: navy;
  199. }
  200. dd > *:first-child {
  201. margin-top: 0.1em;
  202. }
  203. ul, ol {
  204. list-style-position: outside;
  205. }
  206. ol.arabic {
  207. list-style-type: decimal;
  208. }
  209. ol.loweralpha {
  210. list-style-type: lower-alpha;
  211. }
  212. ol.upperalpha {
  213. list-style-type: upper-alpha;
  214. }
  215. ol.lowerroman {
  216. list-style-type: lower-roman;
  217. }
  218. ol.upperroman {
  219. list-style-type: upper-roman;
  220. }
  221. div.compact ul, div.compact ol,
  222. div.compact p, div.compact p,
  223. div.compact div, div.compact div {
  224. margin-top: 0.1em;
  225. margin-bottom: 0.1em;
  226. }
  227. div.tableblock > table {
  228. border: 3px solid #527bbd;
  229. }
  230. thead, p.table.header {
  231. font-family: sans-serif;
  232. font-weight: bold;
  233. }
  234. tfoot {
  235. font-weight: bold;
  236. }
  237. td > div.verse {
  238. white-space: pre;
  239. }
  240. p.table {
  241. margin-top: 0;
  242. }
  243. /* Because the table frame attribute is overriden by CSS in most browsers. */
  244. div.tableblock > table[frame="void"] {
  245. border-style: none;
  246. }
  247. div.tableblock > table[frame="hsides"] {
  248. border-left-style: none;
  249. border-right-style: none;
  250. }
  251. div.tableblock > table[frame="vsides"] {
  252. border-top-style: none;
  253. border-bottom-style: none;
  254. }
  255. div.hdlist {
  256. margin-top: 0.8em;
  257. margin-bottom: 0.8em;
  258. }
  259. div.hdlist tr {
  260. padding-bottom: 15px;
  261. }
  262. dt.hdlist1.strong, td.hdlist1.strong {
  263. font-weight: bold;
  264. }
  265. td.hdlist1 {
  266. vertical-align: top;
  267. font-style: normal;
  268. padding-right: 0.8em;
  269. color: navy;
  270. }
  271. td.hdlist2 {
  272. vertical-align: top;
  273. }
  274. div.hdlist.compact tr {
  275. margin: 0;
  276. padding-bottom: 0;
  277. }
  278. .comment {
  279. background: yellow;
  280. }
  281. .footnote, .footnoteref {
  282. font-size: 0.8em;
  283. }
  284. span.footnote, span.footnoteref {
  285. vertical-align: super;
  286. }
  287. #footnotes {
  288. margin: 20px 0 20px 0;
  289. padding: 7px 0 0 0;
  290. }
  291. #footnotes div.footnote {
  292. margin: 0 0 5px 0;
  293. }
  294. #footnotes hr {
  295. border: none;
  296. border-top: 1px solid silver;
  297. height: 1px;
  298. text-align: left;
  299. margin-left: 0;
  300. width: 20%;
  301. min-width: 100px;
  302. }
  303. @media print {
  304. div#footer-badges { display: none; }
  305. }
  306. div#toc {
  307. margin-bottom: 2.5em;
  308. }
  309. div#toctitle {
  310. color: #527bbd;
  311. font-family: sans-serif;
  312. font-size: 1.1em;
  313. font-weight: bold;
  314. margin-top: 1.0em;
  315. margin-bottom: 0.1em;
  316. }
  317. div.toclevel1, div.toclevel2, div.toclevel3, div.toclevel4 {
  318. margin-top: 0;
  319. margin-bottom: 0;
  320. }
  321. div.toclevel2 {
  322. margin-left: 2em;
  323. font-size: 0.9em;
  324. }
  325. div.toclevel3 {
  326. margin-left: 4em;
  327. font-size: 0.9em;
  328. }
  329. div.toclevel4 {
  330. margin-left: 6em;
  331. font-size: 0.9em;
  332. }
  333. /* Overrides for manpage documents */
  334. h1 {
  335. padding-top: 0.5em;
  336. padding-bottom: 0.5em;
  337. border-top: 2px solid silver;
  338. border-bottom: 2px solid silver;
  339. }
  340. h2 {
  341. border-style: none;
  342. }
  343. div.sectionbody {
  344. margin-left: 5%;
  345. }
  346. @media print {
  347. div#toc { display: none; }
  348. }
  349. /* Workarounds for IE6's broken and incomplete CSS2. */
  350. div.sidebar-content {
  351. background: #ffffee;
  352. border: 1px solid silver;
  353. padding: 0.5em;
  354. }
  355. div.sidebar-title, div.image-title {
  356. color: #527bbd;
  357. font-family: sans-serif;
  358. font-weight: bold;
  359. margin-top: 0.0em;
  360. margin-bottom: 0.5em;
  361. }
  362. div.listingblock div.content {
  363. border: 1px solid silver;
  364. background: #f4f4f4;
  365. padding: 0.5em;
  366. }
  367. div.quoteblock-attribution {
  368. padding-top: 0.5em;
  369. text-align: right;
  370. }
  371. div.verseblock-content {
  372. white-space: pre;
  373. }
  374. div.verseblock-attribution {
  375. padding-top: 0.75em;
  376. text-align: left;
  377. }
  378. div.exampleblock-content {
  379. border-left: 3px solid #dddddd;
  380. padding-left: 0.5em;
  381. }
  382. /* IE6 sets dynamically generated links as visited. */
  383. div#toc a:visited { color: blue; }
  384. </style>
  385. <script type="text/javascript">
  386. /*<![CDATA[*/
  387. window.onload = function(){asciidoc.footnotes();}
  388. var asciidoc = { // Namespace.
  389. /////////////////////////////////////////////////////////////////////
  390. // Table Of Contents generator
  391. /////////////////////////////////////////////////////////////////////
  392. /* Author: Mihai Bazon, September 2002
  393. * http://students.infoiasi.ro/~mishoo
  394. *
  395. * Table Of Content generator
  396. * Version: 0.4
  397. *
  398. * Feel free to use this script under the terms of the GNU General Public
  399. * License, as long as you do not remove or alter this notice.
  400. */
  401. /* modified by Troy D. Hanson, September 2006. License: GPL */
  402. /* modified by Stuart Rackham, 2006, 2009. License: GPL */
  403. // toclevels = 1..4.
  404. toc: function (toclevels) {
  405. function getText(el) {
  406. var text = "";
  407. for (var i = el.firstChild; i != null; i = i.nextSibling) {
  408. if (i.nodeType == 3 /* Node.TEXT_NODE */) // IE doesn't speak constants.
  409. text += i.data;
  410. else if (i.firstChild != null)
  411. text += getText(i);
  412. }
  413. return text;
  414. }
  415. function TocEntry(el, text, toclevel) {
  416. this.element = el;
  417. this.text = text;
  418. this.toclevel = toclevel;
  419. }
  420. function tocEntries(el, toclevels) {
  421. var result = new Array;
  422. var re = new RegExp('[hH]([2-'+(toclevels+1)+'])');
  423. // Function that scans the DOM tree for header elements (the DOM2
  424. // nodeIterator API would be a better technique but not supported by all
  425. // browsers).
  426. var iterate = function (el) {
  427. for (var i = el.firstChild; i != null; i = i.nextSibling) {
  428. if (i.nodeType == 1 /* Node.ELEMENT_NODE */) {
  429. var mo = re.exec(i.tagName);
  430. if (mo && (i.getAttribute("class") || i.getAttribute("className")) != "float") {
  431. result[result.length] = new TocEntry(i, getText(i), mo[1]-1);
  432. }
  433. iterate(i);
  434. }
  435. }
  436. }
  437. iterate(el);
  438. return result;
  439. }
  440. var toc = document.getElementById("toc");
  441. var entries = tocEntries(document.getElementById("content"), toclevels);
  442. for (var i = 0; i < entries.length; ++i) {
  443. var entry = entries[i];
  444. if (entry.element.id == "")
  445. entry.element.id = "_toc_" + i;
  446. var a = document.createElement("a");
  447. a.href = "#" + entry.element.id;
  448. a.appendChild(document.createTextNode(entry.text));
  449. var div = document.createElement("div");
  450. div.appendChild(a);
  451. div.className = "toclevel" + entry.toclevel;
  452. toc.appendChild(div);
  453. }
  454. if (entries.length == 0)
  455. toc.parentNode.removeChild(toc);
  456. },
  457. /////////////////////////////////////////////////////////////////////
  458. // Footnotes generator
  459. /////////////////////////////////////////////////////////////////////
  460. /* Based on footnote generation code from:
  461. * http://www.brandspankingnew.net/archive/2005/07/format_footnote.html
  462. */
  463. footnotes: function () {
  464. var cont = document.getElementById("content");
  465. var noteholder = document.getElementById("footnotes");
  466. var spans = cont.getElementsByTagName("span");
  467. var refs = {};
  468. var n = 0;
  469. for (i=0; i<spans.length; i++) {
  470. if (spans[i].className == "footnote") {
  471. n++;
  472. // Use [\s\S] in place of . so multi-line matches work.
  473. // Because JavaScript has no s (dotall) regex flag.
  474. note = spans[i].innerHTML.match(/\s*\[([\s\S]*)]\s*/)[1];
  475. noteholder.innerHTML +=
  476. "<div class='footnote' id='_footnote_" + n + "'>" +
  477. "<a href='#_footnoteref_" + n + "' title='Return to text'>" +
  478. n + "</a>. " + note + "</div>";
  479. spans[i].innerHTML =
  480. "[<a id='_footnoteref_" + n + "' href='#_footnote_" + n +
  481. "' title='View footnote' class='footnote'>" + n + "</a>]";
  482. var id =spans[i].getAttribute("id");
  483. if (id != null) refs["#"+id] = n;
  484. }
  485. }
  486. if (n == 0)
  487. noteholder.parentNode.removeChild(noteholder);
  488. else {
  489. // Process footnoterefs.
  490. for (i=0; i<spans.length; i++) {
  491. if (spans[i].className == "footnoteref") {
  492. var href = spans[i].getElementsByTagName("a")[0].getAttribute("href");
  493. href = href.match(/#.*/)[0]; // Because IE return full URL.
  494. n = refs[href];
  495. spans[i].innerHTML =
  496. "[<a href='#_footnote_" + n +
  497. "' title='View footnote' class='footnote'>" + n + "</a>]";
  498. }
  499. }
  500. }
  501. }
  502. }
  503. /*]]>*/
  504. </script>
  505. </head>
  506. <body>
  507. <div id="header">
  508. <h1>
  509. git-var(1) Manual Page
  510. </h1>
  511. <h2>NAME</h2>
  512. <div class="sectionbody">
  513. <p>git-var -
  514. Show a git logical variable
  515. </p>
  516. </div>
  517. </div>
  518. <div id="content">
  519. <h2 id="_synopsis">SYNOPSIS</h2>
  520. <div class="sectionbody">
  521. <div class="verseblock">
  522. <div class="verseblock-content"><em>git var</em> ( -l | &lt;variable&gt; )</div>
  523. <div class="verseblock-attribution">
  524. </div></div>
  525. </div>
  526. <h2 id="_description">DESCRIPTION</h2>
  527. <div class="sectionbody">
  528. <div class="paragraph"><p>Prints a git logical variable.</p></div>
  529. </div>
  530. <h2 id="_options">OPTIONS</h2>
  531. <div class="sectionbody">
  532. <div class="dlist"><dl>
  533. <dt class="hdlist1">
  534. -l
  535. </dt>
  536. <dd>
  537. <p>
  538. Cause the logical variables to be listed. In addition, all the
  539. variables of the git configuration file .git/config are listed
  540. as well. (However, the configuration variables listing functionality
  541. is deprecated in favor of <tt>git config -l</tt>.)
  542. </p>
  543. </dd>
  544. </dl></div>
  545. </div>
  546. <h2 id="_example">EXAMPLE</h2>
  547. <div class="sectionbody">
  548. <div class="literalblock">
  549. <div class="content">
  550. <pre><tt>$ git var GIT_AUTHOR_IDENT
  551. Eric W. Biederman &lt;ebiederm@lnxi.com&gt; 1121223278 -0600</tt></pre>
  552. </div></div>
  553. </div>
  554. <h2 id="_variables">VARIABLES</h2>
  555. <div class="sectionbody">
  556. <div class="dlist"><dl>
  557. <dt class="hdlist1">
  558. GIT_AUTHOR_IDENT
  559. </dt>
  560. <dd>
  561. <p>
  562. The author of a piece of code.
  563. </p>
  564. </dd>
  565. <dt class="hdlist1">
  566. GIT_COMMITTER_IDENT
  567. </dt>
  568. <dd>
  569. <p>
  570. The person who put a piece of code into git.
  571. </p>
  572. </dd>
  573. <dt class="hdlist1">
  574. GIT_EDITOR
  575. </dt>
  576. <dd>
  577. <p>
  578. Text editor for use by git commands. The value is meant to be
  579. interpreted by the shell when it is used. Examples: <tt>~/bin/vi</tt>,
  580. <tt>$SOME_ENVIRONMENT_VARIABLE</tt>, <tt>"C:\Program Files\Vim\gvim.exe"
  581. --nofork</tt>. The order of preference is the <tt>$GIT_EDITOR</tt>
  582. environment variable, then <tt>core.editor</tt> configuration, then
  583. <tt>$VISUAL</tt>, then <tt>$EDITOR</tt>, and then the default chosen at compile
  584. time, which is usually <em>vi</em>.
  585. </p>
  586. </dd>
  587. <dt class="hdlist1">
  588. GIT_PAGER
  589. </dt>
  590. <dd>
  591. <p>
  592. Text viewer for use by git commands (e.g., <em>less</em>). The value
  593. is meant to be interpreted by the shell. The order of preference
  594. is the <tt>$GIT_PAGER</tt> environment variable, then <tt>core.pager</tt>
  595. configuration, then <tt>$PAGER</tt>, and then the default chosen at
  596. compile time (usually <em>less</em>).
  597. </p>
  598. </dd>
  599. </dl></div>
  600. </div>
  601. <h2 id="_see_also">SEE ALSO</h2>
  602. <div class="sectionbody">
  603. <div class="paragraph"><p><a href="git-commit-tree.html">git-commit-tree(1)</a>
  604. <a href="git-tag.html">git-tag(1)</a>
  605. <a href="git-config.html">git-config(1)</a></p></div>
  606. </div>
  607. <h2 id="_git">GIT</h2>
  608. <div class="sectionbody">
  609. <div class="paragraph"><p>Part of the <a href="git.html">git(1)</a> suite</p></div>
  610. </div>
  611. </div>
  612. <div id="footnotes"><hr /></div>
  613. <div id="footer">
  614. <div id="footer-text">
  615. Last updated 2012-05-30 14:00:59 PDT
  616. </div>
  617. </div>
  618. </body>
  619. </html>