diff options
author | Jonathan Nieder <jrnieder@gmail.com> | 2009-11-09 09:04:46 -0600 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2009-11-09 17:08:53 -0800 |
commit | e62b393505616c3ce313f6dac5060d9e1cde8e42 (patch) | |
tree | ee7e316c881fba62c46907b3273b26fe4431ab02 /builtin-fast-export.c | |
parent | Show usage string for 'git merge-ours -h' (diff) | |
download | tgif-e62b393505616c3ce313f6dac5060d9e1cde8e42.tar.xz |
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 <jrnieder@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'builtin-fast-export.c')
0 files changed, 0 insertions, 0 deletions