summaryrefslogtreecommitdiffstats
path: root/git-show-ref.html
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2014-10-31 13:25:53 -0700
committerJunio C Hamano <gitster@pobox.com>2014-10-31 13:25:53 -0700
commitc14e6ad9a230ad90c84b7f620d87fbe49a2d0342 (patch)
tree120346dc383e3d1c4219fe8c533eb22cb6af2b55 /git-show-ref.html
parent2a4bcbc355496c8d83b1b9f8892c4cbe8f584158 (diff)
downloadgit-htmldocs-c14e6ad9a230ad90c84b7f620d87fbe49a2d0342.tar.gz
Autogenerated HTML docs for v2.2.0-rc0
Diffstat (limited to 'git-show-ref.html')
-rw-r--r--git-show-ref.html64
1 files changed, 31 insertions, 33 deletions
diff --git a/git-show-ref.html b/git-show-ref.html
index 579eceeb4..28330900c 100644
--- a/git-show-ref.html
+++ b/git-show-ref.html
@@ -3,7 +3,7 @@
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
<meta http-equiv="Content-Type" content="application/xhtml+xml; charset=UTF-8" />
-<meta name="generator" content="AsciiDoc 8.6.6" />
+<meta name="generator" content="AsciiDoc 8.6.9" />
<title>git-show-ref(1)</title>
<style type="text/css">
/* Shared CSS for AsciiDoc xhtml11 and html5 backends */
@@ -87,10 +87,16 @@ ul, ol, li > p {
ul > li { color: #aaa; }
ul > li > * { color: black; }
-pre {
+.monospaced, code, pre {
+ font-family: "Courier New", Courier, monospace;
+ font-size: inherit;
+ color: navy;
padding: 0;
margin: 0;
}
+pre {
+ white-space: pre-wrap;
+}
#author {
color: #527bbd;
@@ -219,7 +225,7 @@ div.exampleblock > div.content {
}
div.imageblock div.content { padding-left: 0; }
-span.image img { border-style: none; }
+span.image img { border-style: none; vertical-align: text-bottom; }
a.image:visited { color: white; }
dl {
@@ -349,7 +355,7 @@ div.colist td img {
margin-bottom: 0.1em;
}
-div.toclevel1, div.toclevel2, div.toclevel3, div.toclevel4 {
+div.toclevel0, div.toclevel1, div.toclevel2, div.toclevel3, div.toclevel4 {
margin-top: 0;
margin-bottom: 0;
}
@@ -407,18 +413,14 @@ span.underline { text-decoration: underline; }
span.overline { text-decoration: overline; }
span.line-through { text-decoration: line-through; }
+div.unbreakable { page-break-inside: avoid; }
+
/*
* xhtml11 specific
*
* */
-tt {
- font-family: monospace;
- font-size: inherit;
- color: navy;
-}
-
div.tableblock {
margin-top: 1.0em;
margin-bottom: 1.5em;
@@ -452,12 +454,6 @@ div.tableblock > table[frame="vsides"] {
*
* */
-.monospaced {
- font-family: monospace;
- font-size: inherit;
- color: navy;
-}
-
table.tableblock {
margin-top: 1.0em;
margin-bottom: 1.5em;
@@ -537,6 +533,8 @@ body.manpage div.sectionbody {
@media print {
body.manpage div#toc { display: none; }
}
+
+
</style>
<script type="text/javascript">
/*<![CDATA[*/
@@ -581,7 +579,7 @@ toc: function (toclevels) {
function tocEntries(el, toclevels) {
var result = new Array;
- var re = new RegExp('[hH]([2-'+(toclevels+1)+'])');
+ var re = new RegExp('[hH]([1-'+(toclevels+1)+'])');
// Function that scans the DOM tree for header elements (the DOM2
// nodeIterator API would be a better technique but not supported by all
// browsers).
@@ -610,7 +608,7 @@ toc: function (toclevels) {
var i;
for (i = 0; i < toc.childNodes.length; i++) {
var entry = toc.childNodes[i];
- if (entry.nodeName == 'div'
+ if (entry.nodeName.toLowerCase() == 'div'
&& entry.getAttribute("class")
&& entry.getAttribute("class").match(/^toclevel/))
tocEntriesToRemove.push(entry);
@@ -656,7 +654,7 @@ footnotes: function () {
var entriesToRemove = [];
for (i = 0; i < noteholder.childNodes.length; i++) {
var entry = noteholder.childNodes[i];
- if (entry.nodeName == 'div' && entry.getAttribute("class") == "footnote")
+ if (entry.nodeName.toLowerCase() == 'div' && entry.getAttribute("class") == "footnote")
entriesToRemove.push(entry);
}
for (i = 0; i < entriesToRemove.length; i++) {
@@ -769,7 +767,7 @@ particular ref exists.</p></div>
<div class="paragraph"><p>The --exclude-existing form is a filter that does the inverse, it shows the
refs from stdin that don&#8217;t exist in the local repository.</p></div>
<div class="paragraph"><p>Use of this utility is encouraged in favor of directly accessing files under
-the <tt>.git</tt> directory.</p></div>
+the <code>.git</code> directory.</p></div>
</div>
</div>
<div class="sect1">
@@ -836,8 +834,8 @@ the <tt>.git</tt> directory.</p></div>
</dt>
<dd>
<p>
- Abbreviate the object name. When using <tt>--hash</tt>, you do
- not have to say <tt>--hash --abbrev</tt>; <tt>--hash=n</tt> would do.
+ Abbreviate the object name. When using <code>--hash</code>, you do
+ not have to say <code>--hash --abbrev</code>; <code>--hash=n</code> would do.
</p>
</dd>
<dt class="hdlist1">
@@ -858,7 +856,7 @@ the <tt>.git</tt> directory.</p></div>
<dd>
<p>
Make <em>git show-ref</em> act as a filter that reads refs from stdin of the
- form "<tt>^(?:&lt;anything&gt;\s)?&lt;refname&gt;(?:\^{})?$</tt>"
+ form "<code>^(?:&lt;anything&gt;\s)?&lt;refname&gt;(?:\^{})?$</code>"
and performs the following actions on each:
(1) strip "&#94;{}" at the end of line if any;
(2) ignore if pattern is provided and does not head-match refname;
@@ -888,7 +886,7 @@ the <tt>.git</tt> directory.</p></div>
<div class="paragraph"><p>The output is in the format: <em>&lt;SHA-1 ID&gt;</em> <em>&lt;space&gt;</em> <em>&lt;reference name&gt;</em>.</p></div>
<div class="listingblock">
<div class="content">
-<pre><tt>$ git show-ref --head --dereference
+<pre><code>$ git show-ref --head --dereference
832e76a9899f560a90ffd62ae2ce83bbeff58f54 HEAD
832e76a9899f560a90ffd62ae2ce83bbeff58f54 refs/heads/master
832e76a9899f560a90ffd62ae2ce83bbeff58f54 refs/heads/origin
@@ -896,16 +894,16 @@ the <tt>.git</tt> directory.</p></div>
6ddc0964034342519a87fe013781abf31c6db6ad refs/tags/v0.99.9c^{}
055e4ae3ae6eb344cbabf2a5256a49ea66040131 refs/tags/v1.0rc4
423325a2d24638ddcc82ce47be5e40be550f4507 refs/tags/v1.0rc4^{}
-...</tt></pre>
+...</code></pre>
</div></div>
<div class="paragraph"><p>When using --hash (and not --dereference) the output format is: <em>&lt;SHA-1 ID&gt;</em></p></div>
<div class="listingblock">
<div class="content">
-<pre><tt>$ git show-ref --heads --hash
+<pre><code>$ git show-ref --heads --hash
2e3ba0114a1f52b47df29743d6915d056be13278
185008ae97960c8d551adcd9e23565194651b5d1
03adf42c988195b50e1a1935ba5fcbc39b2b029b
-...</tt></pre>
+...</code></pre>
</div></div>
</div>
</div>
@@ -917,14 +915,14 @@ else, and regardless of how deep in the reference naming hierarchy they are,
use:</p></div>
<div class="listingblock">
<div class="content">
-<pre><tt> git show-ref master</tt></pre>
+<pre><code> git show-ref master</code></pre>
</div></div>
<div class="paragraph"><p>This will show "refs/heads/master" but also "refs/remote/other-repo/master",
if such references exists.</p></div>
<div class="paragraph"><p>When using the <em>--verify</em> flag, the command requires an exact path:</p></div>
<div class="listingblock">
<div class="content">
-<pre><tt> git show-ref --verify refs/heads/master</tt></pre>
+<pre><code> git show-ref --verify refs/heads/master</code></pre>
</div></div>
<div class="paragraph"><p>will only match the exact branch called "master".</p></div>
<div class="paragraph"><p>If nothing matches, <em>git show-ref</em> will return an error code of 1,
@@ -933,8 +931,8 @@ and in the case of verification, it will show an error message.</p></div>
allows you to do things like</p></div>
<div class="listingblock">
<div class="content">
-<pre><tt> git show-ref --quiet --verify -- "refs/heads/$headname" ||
- echo "$headname is not a valid branch"</tt></pre>
+<pre><code> git show-ref --quiet --verify -- "refs/heads/$headname" ||
+ echo "$headname is not a valid branch"</code></pre>
</div></div>
<div class="paragraph"><p>to check whether a particular branch exists or not (notice how we don&#8217;t
actually want to show any results, and we want to use the full refname for it
@@ -946,7 +944,7 @@ random references under the refs/ subdirectory).</p></div>
flag, so you can do</p></div>
<div class="listingblock">
<div class="content">
-<pre><tt> git show-ref --tags --dereference</tt></pre>
+<pre><code> git show-ref --tags --dereference</code></pre>
</div></div>
<div class="paragraph"><p>to get a listing of all tags together with what they dereference.</p></div>
</div>
@@ -954,7 +952,7 @@ flag, so you can do</p></div>
<div class="sect1">
<h2 id="_files">FILES</h2>
<div class="sectionbody">
-<div class="paragraph"><p><tt>.git/refs/*</tt>, <tt>.git/packed-refs</tt></p></div>
+<div class="paragraph"><p><code>.git/refs/*</code>, <code>.git/packed-refs</code></p></div>
</div>
</div>
<div class="sect1">