summaryrefslogtreecommitdiffstats
path: root/git-rev-parse.html
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2015-05-22 13:48:55 -0700
committerJunio C Hamano <gitster@pobox.com>2015-05-22 13:48:55 -0700
commit1dbca52d492eab38500f435fc9af5f463d3e9c95 (patch)
tree91d8a505b64826863ccc4f99576a2a8b0f6c07fe /git-rev-parse.html
parente1b28594a7acfaa493ca0cf32e7e970dc549527a (diff)
downloadgit-htmldocs-1dbca52d492eab38500f435fc9af5f463d3e9c95.tar.gz
Autogenerated HTML docs for v2.4.1-314-g9532e
Diffstat (limited to 'git-rev-parse.html')
-rw-r--r--git-rev-parse.html3
1 files changed, 2 insertions, 1 deletions
diff --git a/git-rev-parse.html b/git-rev-parse.html
index da177ef56..8f49b63ef 100644
--- a/git-rev-parse.html
+++ b/git-rev-parse.html
@@ -907,6 +907,7 @@ eval "set -- $(git rev-parse --sq --prefix "$prefix" "$@")"</code></pre>
</p>
<div class="paragraph"><p>If you want to make sure that the output actually names an object in
your object database and/or can be used as a specific type of object
+you require, you can add the <code>^{type}</code> peeling operator to the parameter.
For example, <code>git rev-parse "$VAR^{commit}"</code> will make sure <code>$VAR</code>
names an existing object that is a commit-ish (i.e. a commit, or an
annotated tag that points at a commit). To make sure that <code>$VAR</code>
@@ -1860,7 +1861,7 @@ Similar to above:
<div id="footnotes"><hr /></div>
<div id="footer">
<div id="footer-text">
-Last updated 2015-05-11 15:40:21 PDT
+Last updated 2015-05-22 13:47:07 PDT
</div>
</div>
</body>