Code

help: Do not unnecessarily look for a repository
authorDavid Aguilar <davvid@gmail.com>
Tue, 1 Dec 2009 19:27:34 +0000 (11:27 -0800)
committerJunio C Hamano <gitster@pobox.com>
Tue, 1 Dec 2009 20:10:09 +0000 (12:10 -0800)
commitaf6fbf9f814b3ee23b4b6d632131095c0278ae44
treef130bccf194f8b4170ce6a8c8dba94252fefa0dc
parent3c652d16713c27d0abb2003d83a237f7d47ef569
help: Do not unnecessarily look for a repository

Although 'git help' actually doesn't need to be run inside a git
repository and uses no repository-specific information, it looks for a git
directory.  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 without any options.

7c3baa9 originally modified 'git help -a' to not require a repository.
This applies the same fix for 'git help'.

Signed-off-by: David Aguilar <davvid@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin-help.c