summaryrefslogtreecommitdiffstats
path: root/git-symbolic-ref.html
diff options
context:
space:
mode:
authorJunio C Hamano <junio@hera.kernel.org>2007-01-16 10:44:47 +0000
committerJunio C Hamano <junio@hera.kernel.org>2007-01-16 10:44:47 +0000
commit97c11c5144898db4f8848b34bc5f26603c5b6b6a (patch)
treed116c64fad9eb4d59f71382727d7103044abb74f /git-symbolic-ref.html
parentedd2b0a4fa552d711bcf7561dead9c6c87146701 (diff)
downloadgit-htmldocs-97c11c5144898db4f8848b34bc5f26603c5b6b6a.tar.gz
Autogenerated HTML docs for v1.5.0-rc1-g6f729
Diffstat (limited to 'git-symbolic-ref.html')
-rw-r--r--git-symbolic-ref.html22
1 files changed, 20 insertions, 2 deletions
diff --git a/git-symbolic-ref.html b/git-symbolic-ref.html
index ee6e8be9c..6d871a500 100644
--- a/git-symbolic-ref.html
+++ b/git-symbolic-ref.html
@@ -272,7 +272,7 @@ git-symbolic-ref(1) Manual Page
</div>
<h2>SYNOPSIS</h2>
<div class="sectionbody">
-<p><em>git-symbolic-ref</em> &lt;name&gt; [&lt;ref&gt;]</p>
+<p><em>git-symbolic-ref</em> [-q] &lt;name&gt; [&lt;ref&gt;]</p>
</div>
<h2>DESCRIPTION</h2>
<div class="sectionbody">
@@ -286,6 +286,21 @@ point at the given branch &lt;ref&gt;.</p>
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>
+<h2>OPTIONS</h2>
+<div class="sectionbody">
+<dl>
+<dt>
+-q
+</dt>
+<dd>
+<p>
+ Do not issue an error message if the &lt;name&gt; is not a
+ symbolic ref but a detached HEAD; instead exit with
+ non-zero status silently.
+</p>
+</dd>
+</dl>
+</div>
<h2>NOTES</h2>
<div class="sectionbody">
<p>In the past, <tt>.git/HEAD</tt> was a symbolic link pointing at
@@ -298,6 +313,9 @@ or that do not have the <tt>readlink(1)</tt> command, this was a bit
cumbersome. On some platforms, <tt>ln -sf</tt> does not even work as
advertised (horrors). Therefore symbolic links are now deprecated
and symbolic refs are used by default.</p>
+<p>git-symbolic-ref will exit with status 0 if the contents of the
+symbolic ref were printed correctly, with status 1 if the requested
+name is not a symbolic ref, or 128 if another error occurs.</p>
</div>
<h2>Author</h2>
<div class="sectionbody">
@@ -309,7 +327,7 @@ and symbolic refs are used by default.</p>
</div>
<div id="footer">
<div id="footer-text">
-Last updated 03-Dec-2006 01:53:20 UTC
+Last updated 16-Jan-2007 10:44:38 UTC
</div>
</div>
</body>