help -a: do not unnecessarily look for a repository
authorJohannes Schindelin <redacted>
Fri, 4 Sep 2009 10:22:36 +0000 (12:22 +0200)
committerJunio C Hamano <redacted>
Wed, 28 Oct 2009 17:42:17 +0000 (10:42 -0700)
commit7c3baa9abf0abe15f068d95688bbc27e73a69042
tree8ac47157f6b11c5d69cb320dd5b1d504e0d71f25
parentaab748636dbbd6412af6f4996c2791eba4246c0c
help -a: do not unnecessarily look for a repository

Although 'git help -a' actually doesn't need to be run inside a git
repository and uses no repository-specific information, it looks for a git
directory.  On 'git <TAB><TAB>' the bash completion runs 'git help -a' and
unnecessary searching for a git directory can be annoying in auto-mount
environments.  With this commit, 'git help' no longer searches for a
repository when run with the -a option.

Reported by Vincent Danjean through http://bugs.debian.org/539273

Signed-off-by: Johannes Schindelin <redacted>
Signed-off-by: Gerrit Pape <redacted>
Signed-off-by: Junio C Hamano <redacted>
builtin-help.c
git clone https://git.99rst.org/PROJECT