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

Re: [PROPOSAL] .gitignore syntax modification

From
Jonathan Nieder <jrnieder@gmail.com>
Date
Oct 13, 2010, 02:40 UTC
Message-ID
<20101013024034.GA26483@burratino>
In-Reply-To
<F06C63D1-26AE-4278-96CE-2F6B2D6DD300@sb.org>
Kevin Ballard wrote:
> On Oct 12, 2010, at 7:24 PM, Nguyen Thai Ngoc Duy wrote:
>> Special case "**/" (also "path/to/**/") is probably good enough. You
>> might need to handle all combinations of "**/" and other optimizations
>> in excluded_from_list() though. Can you make a patch (or a few
>> patches) for it?
[...]
>                                                                  At
> this point I'm actually in favor of simply assuming all paths that
> don't start with / can be matched at any level

As a long-term change with early warnings and proper deprecation procedure that may (or may not) be an ok idea, but in the short term it is certainly a no-go.

If linux-2.6 is any indication of what to expect, some projects are not using / in front of any paths with / at all.

Previous: Kevin BallardNext: Kevin Ballard
Message 7 of 13 in “[PROPOSAL] .gitignore syntax modification”
  1. Kevin BallardOct 8, 2010
  2. MaaartinOct 8, 2010
  3. Kevin BallardOct 9, 2010
  4. MaaartinOct 11, 2010
  5. Nguyen Thai Ngoc DuyOct 13, 2010
  6. Kevin BallardOct 13, 2010
  7. Jonathan NiederOct 13, 2010
  8. Kevin BallardOct 13, 2010
  9. Junio C HamanoOct 13, 2010
  10. Nguyen Thai Ngoc DuyOct 13, 2010
  11. Kevin BallardOct 15, 2010
  12. Nguyen Thai Ngoc DuyOct 15, 2010
  13. Kevin BallardOct 15, 2010

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.