summaryrefslogtreecommitdiffstats
path: root/git-symbolic-ref.html
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2014-01-17 14:46:49 -0800
committerJunio C Hamano <gitster@pobox.com>2014-01-17 14:46:49 -0800
commit61525f915b47e953b4288a9afcee45e47b352214 (patch)
treef0649f89cc7a77c0296305f4673fc2bc7e0a6d54 /git-symbolic-ref.html
parentbc8d4783cac3c942fc9e8cf2f3eae4aea8cab5cb (diff)
downloadgit-htmldocs-61525f915b47e953b4288a9afcee45e47b352214.tar.gz
Autogenerated HTML docs for v1.9-rc0
Diffstat (limited to 'git-symbolic-ref.html')
-rw-r--r--git-symbolic-ref.html52
1 files changed, 28 insertions, 24 deletions
diff --git a/git-symbolic-ref.html b/git-symbolic-ref.html
index d3b08cb13..4f5cc3ddc 100644
--- a/git-symbolic-ref.html
+++ b/git-symbolic-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.8" />
+<meta name="generator" content="AsciiDoc 8.6.6" />
<title>git-symbolic-ref(1)</title>
<style type="text/css">
/* Shared CSS for AsciiDoc xhtml11 and html5 backends */
@@ -87,15 +87,11 @@ ul, ol, li > p {
ul > li { color: #aaa; }
ul > li > * { color: black; }
-.monospaced, code, pre {
- font-family: "Courier New", Courier, monospace;
- font-size: inherit;
- color: navy;
+pre {
padding: 0;
margin: 0;
}
-
#author {
color: #527bbd;
font-weight: bold;
@@ -353,7 +349,7 @@ div.colist td img {
margin-bottom: 0.1em;
}
-div.toclevel0, div.toclevel1, div.toclevel2, div.toclevel3, div.toclevel4 {
+div.toclevel1, div.toclevel2, div.toclevel3, div.toclevel4 {
margin-top: 0;
margin-bottom: 0;
}
@@ -411,14 +407,18 @@ 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,6 +452,12 @@ div.tableblock > table[frame="vsides"] {
*
* */
+.monospaced {
+ font-family: monospace;
+ font-size: inherit;
+ color: navy;
+}
+
table.tableblock {
margin-top: 1.0em;
margin-bottom: 1.5em;
@@ -531,8 +537,6 @@ body.manpage div.sectionbody {
@media print {
body.manpage div#toc { display: none; }
}
-
-
</style>
<script type="text/javascript">
/*<![CDATA[*/
@@ -577,7 +581,7 @@ toc: function (toclevels) {
function tocEntries(el, toclevels) {
var result = new Array;
- var re = new RegExp('[hH]([1-'+(toclevels+1)+'])');
+ var re = new RegExp('[hH]([2-'+(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).
@@ -606,7 +610,7 @@ toc: function (toclevels) {
var i;
for (i = 0; i < toc.childNodes.length; i++) {
var entry = toc.childNodes[i];
- if (entry.nodeName.toLowerCase() == 'div'
+ if (entry.nodeName == 'div'
&& entry.getAttribute("class")
&& entry.getAttribute("class").match(/^toclevel/))
tocEntriesToRemove.push(entry);
@@ -652,7 +656,7 @@ footnotes: function () {
var entriesToRemove = [];
for (i = 0; i < noteholder.childNodes.length; i++) {
var entry = noteholder.childNodes[i];
- if (entry.nodeName.toLowerCase() == 'div' && entry.getAttribute("class") == "footnote")
+ if (entry.nodeName == 'div' && entry.getAttribute("class") == "footnote")
entriesToRemove.push(entry);
}
for (i = 0; i < entriesToRemove.length; i++) {
@@ -757,16 +761,16 @@ git-symbolic-ref(1) Manual Page
<h2 id="_description">DESCRIPTION</h2>
<div class="sectionbody">
<div class="paragraph"><p>Given one argument, reads which branch head the given symbolic
-ref refers to and outputs its path, relative to the <code>.git/</code>
-directory. Typically you would give <code>HEAD</code> as the &lt;name&gt;
+ref refers to and outputs its path, relative to the <tt>.git/</tt>
+directory. Typically you would give <tt>HEAD</tt> as the &lt;name&gt;
argument to see which branch your working tree is on.</p></div>
<div class="paragraph"><p>Given two arguments, creates or updates a symbolic ref &lt;name&gt; to
point at the given branch &lt;ref&gt;.</p></div>
-<div class="paragraph"><p>Given <code>--delete</code> and an additional argument, deletes the given
+<div class="paragraph"><p>Given <tt>--delete</tt> and an additional argument, deletes the given
symbolic ref.</p></div>
<div class="paragraph"><p>A symbolic ref is a regular file that stores a string that
-begins with <code>ref: refs/</code>. For example, your <code>.git/HEAD</code> is
-a regular file whose contents is <code>ref: refs/heads/master</code>.</p></div>
+begins with <tt>ref: refs/</tt>. For example, your <tt>.git/HEAD</tt> is
+a regular file whose contents is <tt>ref: refs/heads/master</tt>.</p></div>
</div>
</div>
<div class="sect1">
@@ -803,7 +807,7 @@ a regular file whose contents is <code>ref: refs/heads/master</code>.</p></div>
<dd>
<p>
When showing the value of &lt;name&gt; as a symbolic ref, try to shorten the
- value, e.g. from <code>refs/heads/master</code> to <code>master</code>.
+ value, e.g. from <tt>refs/heads/master</tt> to <tt>master</tt>.
</p>
</dd>
<dt class="hdlist1">
@@ -821,10 +825,10 @@ a regular file whose contents is <code>ref: refs/heads/master</code>.</p></div>
<div class="sect1">
<h2 id="_notes">NOTES</h2>
<div class="sectionbody">
-<div class="paragraph"><p>In the past, <code>.git/HEAD</code> was a symbolic link pointing at
-<code>refs/heads/master</code>. When we wanted to switch to another branch,
-we did <code>ln -sf refs/heads/newbranch .git/HEAD</code>, and when we wanted
-to find out which branch we are on, we did <code>readlink .git/HEAD</code>.
+<div class="paragraph"><p>In the past, <tt>.git/HEAD</tt> was a symbolic link pointing at
+<tt>refs/heads/master</tt>. When we wanted to switch to another branch,
+we did <tt>ln -sf refs/heads/newbranch .git/HEAD</tt>, and when we wanted
+to find out which branch we are on, we did <tt>readlink .git/HEAD</tt>.
But symbolic links are not entirely portable, so they are now
deprecated and symbolic refs (as described above) are used by
default.</p></div>