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

Re: [PATCH] Teach ignore machinery about pattern "/"

From
Junio C Hamano <gitster@pobox.com>
Date
May 27, 2012, 06:15 UTC
Message-ID
<7vwr3yp2t8.fsf@alter.siamese.dyndns.org>
In-Reply-To
<CACsJy8BjUQsCVVdzZtJxA9Qu2G0izZa8dvP1EKsQQAHWXZbHdg@mail.gmail.com>
Nguyen Thai Ngoc Duy <pclouds@gmail.com> writes:
Show 13 quoted lines
>> When talking about an ambiguous expression X that can be in multiple ways
>> and each interpretation gives surprisingly different result, if there are
>> ways A, B and C to unambiguously spell each and every of its possible and
>> useful interpretations, and if one of the interpretations C is to ignore
>> the expression altogether, it is preferrable to either
>>
>> (1) warn if it does not trigger anything useful to write a no-op; or
>> (2) just ignore it if a no-op is a meaningful behaviour
>>
>> when you see X.
>
> except that we do the ignoring in (2) but I don't see this as a
> meaningful behavior.

That would mean you would want to update the code to do (1), not silently trigger a different behaviour.

Previous: Nguyen Thai Ngoc DuyNext: Nguyen Thai Ngoc Duy
Message 4 of 7 in “Teach ignore machinery about pattern "/"”
  1. Teach ignore machinery about pattern "/"Nguyễn Thái Ngọc Duy, May 25, 2012
  2. Junio C HamanoMay 25, 2012
  3. Nguyen Thai Ngoc DuyMay 26, 2012
  4. Junio C HamanoMay 27, 2012
  5. Nguyen Thai Ngoc DuyJun 3, 2012
  6. Junio C HamanoJun 3, 2012
  7. Caleb MarchentJun 3, 2012

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.