summaryrefslogtreecommitdiff
path: root/Documentation
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2009-07-06 16:38:58 (GMT)
committerJunio C Hamano <gitster@pobox.com>2009-07-06 16:38:58 (GMT)
commitea1b9b948da8ec3fec186d56e0b33ee07842601a (patch)
tree7c3b98d2f48937b72935de444d60aaab0dee5eb6 /Documentation
parent7557b3431065bfdaaaa8fa3cab5a67a82fae7348 (diff)
parent69932bc6117d7ec2689557693ad300756c961cdc (diff)
downloadgit-ea1b9b948da8ec3fec186d56e0b33ee07842601a.zip
git-ea1b9b948da8ec3fec186d56e0b33ee07842601a.tar.gz
git-ea1b9b948da8ec3fec186d56e0b33ee07842601a.tar.bz2
Merge branch 'sb/show-ref-parse-options'
* sb/show-ref-parse-options: show-ref: migrate to parse-options
Diffstat (limited to 'Documentation')
-rw-r--r--Documentation/git-show-ref.txt15
1 files changed, 7 insertions, 8 deletions
diff --git a/Documentation/git-show-ref.txt b/Documentation/git-show-ref.txt
index 98e294a..f4429bd 100644
--- a/Documentation/git-show-ref.txt
+++ b/Documentation/git-show-ref.txt
@@ -9,8 +9,9 @@ SYNOPSIS
--------
[verse]
'git show-ref' [-q|--quiet] [--verify] [-h|--head] [-d|--dereference]
- [-s|--hash] [--abbrev] [--tags] [--heads] [--] <pattern>...
-'git show-ref' --exclude-existing[=pattern]
+ [-s|--hash[=<n>]] [--abbrev[=<n>]] [--tags]
+ [--heads] [--] <pattern>...
+'git show-ref' --exclude-existing[=<pattern>] < ref-list
DESCRIPTION
-----------
@@ -48,7 +49,7 @@ OPTIONS
appended.
-s::
---hash::
+--hash[=<n>]::
Only show the SHA1 hash, not the reference name. When combined with
--dereference the dereferenced tag will still be shown after the SHA1.
@@ -59,11 +60,10 @@ OPTIONS
Aside from returning an error code of 1, it will also print an error
message if '--quiet' was not specified.
---abbrev::
---abbrev=len::
+--abbrev[=<n>]::
Abbreviate the object name. When using `--hash`, you do
- not have to say `--hash --abbrev`; `--hash=len` would do.
+ not have to say `--hash --abbrev`; `--hash=n` would do.
-q::
--quiet::
@@ -71,8 +71,7 @@ OPTIONS
Do not print any results to stdout. When combined with '--verify' this
can be used to silently check if a reference exists.
---exclude-existing::
---exclude-existing=pattern::
+--exclude-existing[=<pattern>]::
Make 'git-show-ref' act as a filter that reads refs from stdin of the
form "^(?:<anything>\s)?<refname>(?:\^\{\})?$" and performs the