path: root/Documentation/git-show-ref.txt
diff options
authorJonathan Nieder <>2009-11-09 15:04:46 (GMT)
committerJunio C Hamano <>2009-11-10 01:08:53 (GMT)
commite62b393505616c3ce313f6dac5060d9e1cde8e42 (patch)
treeee7e316c881fba62c46907b3273b26fe4431ab02 /Documentation/git-show-ref.txt
parent20c7e3d5cfcc0834fd5d38200e94d15a103ab271 (diff)
Show usage string for 'git show-ref -h'
This only changes the behavior of "git show-ref -h" without any other options and arguments. "show-ref -h" currently is short for "show-ref --head", which shows all the refs/* and HEAD, as opposed to "show-ref" that shows all the refs/* and not HEAD. Does anybody use "show-ref -h"? It was in Linus's original, most likely only because "it might be handy", not because "the command should not show the HEAD by default for such and such reasons". So I think it is okay if "show-ref -h" (but not "show-ref --head") gives help and exits. If a current script uses "git show-ref -h" without any other arguments, it would have to be adapted by changing "-h" to "--head". Signed-off-by: Jonathan Nieder <> Signed-off-by: Junio C Hamano <>
Diffstat (limited to 'Documentation/git-show-ref.txt')
1 files changed, 1 insertions, 2 deletions
diff --git a/Documentation/git-show-ref.txt b/Documentation/git-show-ref.txt
index f4429bd..70f400b 100644
--- a/Documentation/git-show-ref.txt
+++ b/Documentation/git-show-ref.txt
@@ -8,7 +8,7 @@ git-show-ref - List references in a local repository
-'git show-ref' [-q|--quiet] [--verify] [-h|--head] [-d|--dereference]
+'git show-ref' [-q|--quiet] [--verify] [--head] [-d|--dereference]
[-s|--hash[=<n>]] [--abbrev[=<n>]] [--tags]
[--heads] [--] <pattern>...
'git show-ref' --exclude-existing[=<pattern>] < ref-list
@@ -30,7 +30,6 @@ the `.git` directory.
Show the HEAD reference.