author | Johannes Schindelin <Johannes.Schindelin@gmx.de> | |
Fri, 4 Sep 2009 10:22:36 +0000 (12:22 +0200) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Wed, 28 Oct 2009 17:42:17 +0000 (10:42 -0700) | ||
commit | 7c3baa9abf0abe15f068d95688bbc27e73a69042 | |
tree | 8ac47157f6b11c5d69cb320dd5b1d504e0d71f25 | tree | snapshot |
parent | aab748636dbbd6412af6f4996c2791eba4246c0c | commit | diff |
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 <Johannes.Schindelin@gmx.de>
Signed-off-by: Gerrit Pape <pape@smarden.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
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 <Johannes.Schindelin@gmx.de>
Signed-off-by: Gerrit Pape <pape@smarden.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin-help.c | diff | blob | history |