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

Re: git glossary --help ?

From
Junio C Hamano <gitster@pobox.com>
Date
Apr 8, 2019, 01:06 UTC
Message-ID
<xmqqd0lxcnle.fsf@gitster-ct.c.googlers.com>
In-Reply-To
<3de9d8bc-f9d1-bf09-def6-71e5ed418225@iee.org>
Philip Oakley <philipoakley@iee.org> writes:
Show 12 quoted lines
>> But unlike "git foo --help", if the word that ought to name a
>> subcommand instead names a known concept, e.g. "glossary", I do not
>> think it is too bad if we DWIMmed what the user meant to say,
>> i.e. turning "git glossary --help" into "git help glossary".
>>
> Given the earlier report that started the thread Duy linked, I guess
> there will need to be a balance between the two expectations.
>
> The DWIMming may need to both report that it's not a command, but
> then offer the concept guide as the primary target if correct, or
> perhaps as one of the alternate "commands" if closely named to a guide
> (e.g. revisions vs revision).

The "or perhaps" part feels a bit overkill, but I do not mind seeing it if somebody does it cleanly and correctly ;-)

> One of the issues back then was the lack of a complete list of
> 'guides' to check against, so the badly spelt command logic wasn't
> brought into play.

Yeah, thanks for spelling it out; I think we are on the same page, having followed the same discussion in the archive, where we knew that a list of 'concepts-not-commands' would help the error message situation.

Previous: Philip Oakley
Message 8 of 8 in “git glossary --help ?”
  1. Philip OakleyApr 6, 2019
  2. Andreas SchwabApr 6, 2019
  3. Philip OakleyApr 6, 2019
  4. Duy NguyenApr 7, 2019
  5. Philip OakleyApr 7, 2019
  6. Junio C HamanoApr 7, 2019
  7. Philip OakleyApr 7, 2019
  8. Junio C HamanoApr 8, 2019

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.