author | Miklos Vajna <vmiklos@frugalware.org> | |
Wed, 30 Jul 2008 22:38:07 +0000 (00:38 +0200) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Thu, 31 Jul 2008 04:38:18 +0000 (21:38 -0700) | ||
commit | 6e4a86d2ed2d798c5462e5e324fefb8614be52a8 | |
tree | 6b7e7666f43569f0c18893a72ea3d7bef336f127 | tree | snapshot |
parent | dce61e728b89611109e76cbc9fa897fe49d7869d | commit | diff |
builtin-help: always load_command_list() in cmd_help()
When cmd_help() is called, we always need the list of main and other
commands, not just when the list of all commands is shown. Before this
patch 'git help diff' invoked 'man gitdiff' because cmd_to_page()
thought 'diff' is not a git command.
Signed-off-by: Miklos Vajna <vmiklos@frugalware.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
When cmd_help() is called, we always need the list of main and other
commands, not just when the list of all commands is shown. Before this
patch 'git help diff' invoked 'man gitdiff' because cmd_to_page()
thought 'diff' is not a git command.
Signed-off-by: Miklos Vajna <vmiklos@frugalware.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
help.c | diff | blob | history |