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

Re: [PATCH] check-ignore: fix handling with negated patterns

From
Junio C Hamano <gitster@pobox.com>
Date
Feb 17, 2020, 20:41 UTC
Message-ID
<xmqqeeutkkur.fsf@gitster-ct.c.googlers.com>
In-Reply-To
<CABPp-BEbojaeYkSMR7vntW0SkWf6dVOko5H=jqT-Yv2USRerxA@mail.gmail.com>
Elijah Newren <newren@gmail.com> writes:
Show 11 quoted lines
>> I suspect that the above distorts history.  IIRC, it was meant as a
>> tool to see which exact pattern in the exclude sequence had the
>> final say for the given needle, written primarily as a debugging
>> aid.  In that context, "This rule has the final say", whether the
>> rule is a negative or positive, still means something.
>
> I can reword it; how does the following sound?
>
> check-ignore claims that it reports whether each path it is given is
> excluded.  However, it fails to do so because it did not account for
> negated patterns.
I am not sure about "claims" part.  

Isn't it more like "check-ignore has been the tool that reports the rule that has final say on each of the paths it is given, but that is not very useful when the user wants to see if the path is excluded (e.g. the rule with the final say may be negative). Let's change the behaviour so that it reports if the path is excluded or not"? As I said, I tend to agree with the direction your patch wants to go (iow, we probably are better off changing the behaviour"); the question is if we want a transition plan and how extensive it needs be if we do.

Previous: Elijah NewrenNext: Elijah Newren
Message 4 of 9 in “check-ignore: fix handling with negated patterns”
  1. check-ignore: fix handling with negated patternsElijah Newren via GitGitGadget, Feb 17, 2020
  2. Junio C HamanoFeb 17, 2020
  3. Elijah NewrenFeb 17, 2020
  4. Junio C HamanoFeb 17, 2020
  5. Elijah NewrenFeb 17, 2020
  6. Junio C HamanoFeb 19, 2020
  7. check-ignore: fix documentation and implementation to matchElijah Newren via GitGitGadget, Feb 18, 2020
  8. Junio C HamanoFeb 18, 2020
  9. check-ignore: fix documentation and implementation to matchElijah Newren via GitGitGadget, Feb 18, 2020

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.