aboutsummaryrefslogtreecommitdiffstats
path: root/Documentation/git-show-ref.txt
diff options
context:
space:
mode:
authorStephen Boyd <bebarino@gmail.com>2009-06-20 21:40:46 -0700
committerJunio C Hamano <gitster@pobox.com>2009-06-20 23:50:42 -0700
commit69932bc6117d7ec2689557693ad300756c961cdc (patch)
tree5ab2dba7209c1c695ba79ccaa7c872179ce568fc /Documentation/git-show-ref.txt
parentc5764c095c2a563b657c1bd8f4a3e47bdeee14b0 (diff)
downloadgit-69932bc6117d7ec2689557693ad300756c961cdc.tar.gz
show-ref: migrate to parse-options
Also make the docs more consistent with the usage message. While we're here remove the zero initializers from the static variables as they're unnecessary. Signed-off-by: Stephen Boyd <bebarino@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'Documentation/git-show-ref.txt')
-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 98e294aa86..f4429bdc68 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