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

Re: [GSoC][PATCH v2] ref-filter: Make "--contains <id>" less chatty if <id> is invalid

From
Paul-Sebastian Ungureanu <ungureanupaulsebastian@gmail.com>
Date
Feb 24, 2018, 14:12 UTC
Message-ID
<1519481568.32160.3.camel@gmail.com>
In-Reply-To
<xmqq371rs23z.fsf@gitster-ct.c.googlers.com>
Hello,

Your proposed solution makes a lot more sense. I have actually considered a solution similar to this (the third solution from [1]), but found it more complicated. I did not account for the fact that once a callback is called, the user is already aware of the available options and the user only supplied an invalid argument value.

I also have to make sure that all parsers (all callbacks and standard ones, for integer, filename, etc.) are already printing errors appropriately. Otherwise, some commands may fail and the user will not be aware of it because nothing will be shown (no usage is shown and no errors either).

I will be implementing this solution and come back with another patch.
Thank you for your review. I really appreciate it!

[1] https://public-inbox.org/git/20160118215433.GB24136@sigill.intra.pe ff.net/

Best regards, Paul Ungureanu

Previous: Junio C Hamano
Message 4 of 4 in “ref-filter: Make "--contains <id>" less chatty if <id> is invalid”
  1. Paul-Sebastian UngureanuFeb 23, 2018
  2. Junio C HamanoFeb 23, 2018
  3. Junio C HamanoFeb 23, 2018
  4. Paul-Sebastian UngureanuFeb 24, 2018

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.