diff options
author | Junio C Hamano <gitster@pobox.com> | 2013-07-24 20:24:57 -0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2013-07-24 20:24:57 -0700 |
commit | d7fccbf9c67ab9111bc853a5fc90aa87d2d3f9c0 (patch) | |
tree | c35d99c84c5b6f4e4c14928f9465522b255bfa8c /git-rev-parse.txt | |
parent | 58f587aef6ee6b6b759fe8f4dd500f471eee1b88 (diff) | |
download | git-htmldocs-d7fccbf9c67ab9111bc853a5fc90aa87d2d3f9c0.tar.gz |
Autogenerated HTML docs for v1.8.4-rc0
Diffstat (limited to 'git-rev-parse.txt')
-rw-r--r-- | git-rev-parse.txt | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/git-rev-parse.txt b/git-rev-parse.txt index 993903c9f..2b126c0a7 100644 --- a/git-rev-parse.txt +++ b/git-rev-parse.txt @@ -83,7 +83,7 @@ eval "set -- $(git rev-parse --sq --prefix "$prefix" "$@")" + 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 "^{type}" peeling operator to the parmeter. +you require, you can add "^{type}" peeling operator to the parameter. For example, `git rev-parse "$VAR^{commit}"` will make sure `$VAR` 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 `$VAR` |