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

Re: git check-ignore returns 0 for negated masks

From
Junio C Hamano <gitster@pobox.com>
Date
Nov 20, 2019, 03:48 UTC
Message-ID
<xmqqmucrcimx.fsf@gitster-ct.c.googlers.com>
In-Reply-To
<20191119140135.GA7389@seldon.slonopotamus.org>
marat@seldon.slonopotamus.org writes:
> I believe this is a bug because it contradicts check-ignore documentation:
>
>   0 - One or more of the provided paths is ignored.
>   1 - None of the provided paths are ignored.

I think the doc was written with primarily positive entries in mind (it might even predate the introduction of the feature to allow negative entries in the file), so it might need to be adjusted with something like s/be ignored/match the pattern/, perhaps?

Previous: marat@seldon.slonopotamus.org
Message 2 of 2 in “git check-ignore returns 0 for negated masks”
  1. marat@seldon.slonopotamus.orgNov 19, 2019
  2. Junio C HamanoNov 20, 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.