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

Re: top-level gitignore considered harmful

From
Junio C Hamano <gitster@pobox.com>
Date
Mar 29, 2012, 22:06 UTC
Message-ID
<7vvclnoydd.fsf@alter.siamese.dyndns.org>
In-Reply-To
<20120329211136.GA1112@sigill.intra.peff.net>
Jeff King <peff@peff.net> writes:
Show 8 quoted lines
> [1] ... But we could do better in git, too. fnmatch
>     patterns need to be examined linearly because of wildcards. But
>     many patterns don't have wildcards, or the wildcards come much later
>     in the pattern. There's no reason we couldn't preprocess the
>     patterns into a data structure with fast lookup properties, grouped
>     by non-wildcard prefixes (so seeing "foo/bar/*.baz", we could build
>     a trie that lets us reject "other/directory" after only a
>     single-character match).

It sounds like a good project for somebody who has three months working on full-time, especially if she can be helped with a good mentor. The result will reasonably be self-contained.

Previous: Jeff KingNext: Tomas Carnecky
Message 2 of 3 in “top-level gitignore considered harmful”
  1. Jeff KingMar 29, 2012
  2. Junio C HamanoMar 29, 2012
  3. Tomas CarneckyMar 30, 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.