summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: a81892d)
raw | patch | inline | side by side (parent: a81892d)
author | Miklos Vajna <vmiklos@frugalware.org> | |
Thu, 21 Aug 2008 14:21:48 +0000 (16:21 +0200) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Fri, 22 Aug 2008 05:18:21 +0000 (22:18 -0700) |
git help foo invokes man git-foo if foo is a git command, otherwise it
invokes man gitfoo. 'help' is not a git command, but the manual page is
called git-help, so add this special exception.
Signed-off-by: Miklos Vajna <vmiklos@frugalware.org>
Acked-by: Christian Couder <chriscool@tuxfamily.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
invokes man gitfoo. 'help' is not a git command, but the manual page is
called git-help, so add this special exception.
Signed-off-by: Miklos Vajna <vmiklos@frugalware.org>
Acked-by: Christian Couder <chriscool@tuxfamily.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
help.c | patch | blob | history |
index 3cb19628965685ce59a5377b81bef975851996e8..dc0786d8002ef633cae4485eb5b25cdb6cf17df4 100644 (file)
--- a/help.c
+++ b/help.c
{
load_command_list();
return is_in_cmdlist(&main_cmds, s) ||
- is_in_cmdlist(&other_cmds, s);
+ is_in_cmdlist(&other_cmds, s) ||
+ !strcmp(s, "help");
}
static const char *prepend(const char *prefix, const char *cmd)