Thread (13 messages) flat view 13 messages, 4 authors, 2016-06-15

Re: git help broken

From: Christian Couder <hidden>
Date: 2016-06-15 22:45:05

Le jeudi 31 juillet 2008, Miklos Vajna a écrit :
On Thu, Jul 31, 2008 at 01:44:36AM +0200, Johannes Schindelin 
[off-list ref] wrote:
quoted
quoted
And from the patch, it is pretty obvious that it does not come close
to the "man" code path.
Oh, so it was involved?
Yes. The command list is no longer loaded automatically and the default
for non-git commands on git help foo was 'gitfoo', I guess for
gittutorial and such manpages.
Yeah, and it seems that "git help help" doesn't work any more since my patch 
that does that:

2dce956e397be8a769624e8693565b8a30056060 help: check early if we have a 
command, if not try a documentation topic

I didn't realize that the function "is_git_command" would not work 
for "help".

Perhaps there should be another function like is_git_command that could work 
using the "struct cmd_struct commands" defined in "handle_internal_command" 
in "git.c". That may be faster and more accurate.

Unfortunately I won't have time to work on this as I will leave for vacation 
in a few hours. Sorry to leave this behind.

Best regards,
Christian.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help