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

Re: [PATCH] describe: when failing, tell the user about options that work

From
Junio C Hamano <gitster@pobox.com>
Date
Oct 23, 2009, 00:28 UTC
Message-ID
<7vhbtrdkc4.fsf@alter.siamese.dyndns.org>
In-Reply-To
<alpine.LFD.2.00.0910222011200.21460@xanadu.home>
Nicolas Pitre <nico@fluxnic.net> writes:
Show 11 quoted lines
> On Thu, 22 Oct 2009, Junio C Hamano wrote:
>
>> Alex Riesen <raa.lkml@gmail.com> writes:
>> 
>> > These are quite verbose. Could they be conditional on something like
>> > advice.describeHints?
>> 
>> Concurred.  Please make it so.
>
> I don't have a strong opinion either ways, but is having a less verbose 
> message in the _error_ path really a big issue?

Thanks for catching a thinko---I somehow thought the patch was about warning when we give an annotated tag that is farther than an unannotated one.

It should be good enough to unconditionally give hints upon an error, as long as they are correct.

Previous: Nicolas PitreNext: Junio C Hamano
Message 9 of 13 in “git describe is failing”
  1. Eugene SajineOct 22, 2009
  2. Mikael MagnussonOct 22, 2009
  3. Thomas RastOct 22, 2009
  4. Eugene SajineOct 22, 2009
  5. describe: when failing, tell the user about options that workThomas Rast, Oct 22, 2009
  6. Alex RiesenOct 22, 2009
  7. Junio C HamanoOct 22, 2009
  8. Nicolas PitreOct 23, 2009
  9. Junio C HamanoOct 23, 2009
  10. Junio C HamanoOct 23, 2009
  11. Thomas RastOct 23, 2009
  12. Junio C HamanoOct 23, 2009
  13. describe: when failing, tell the user about options that workThomas Rast, Oct 28, 2009

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.