git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: git help broken

From
Christian Couder <chriscool@tuxfamily.org>
Date
Aug 1, 2008, 04:28 UTC
Message-ID
<200808010628.52875.chriscool@tuxfamily.org>
In-Reply-To
<20080731000454.GJ32057@genesis.frugalware.org>
Le jeudi 31 juillet 2008, Miklos Vajna a écrit :
> On Thu, Jul 31, 2008 at 01:44:36AM +0200, Johannes Schindelin 
<Johannes.Schindelin@gmx.de> wrote:
Show 8 quoted lines
> > > 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.

Previous: Miklos VajnaNext: Miklos Vajna
Message 7 of 13 in “git help broken”
  1. Kevin BallardJul 30, 2008
  2. builtin-help: always load_command_list() in cmd_help()Miklos Vajna, Jul 30, 2008
  3. Kevin BallardJul 30, 2008
  4. Johannes SchindelinJul 30, 2008
  5. Johannes SchindelinJul 30, 2008
  6. Miklos VajnaJul 31, 2008
  7. Christian CouderAug 1, 2008
  8. Miklos VajnaAug 1, 2008
  9. Builtin git-help.Miklos Vajna, Aug 2, 2008
  10. Christian CouderAug 21, 2008
  11. Fix 'git help help'Miklos Vajna, Aug 21, 2008
  12. Christian CouderAug 22, 2008
  13. Kevin BallardJul 30, 2008

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.