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

Re: [ENHANCEMENT] Allow '**' pattern in .gitignore

From
Nguyen Thai Ngoc Duy <pclouds@gmail.com>
Date
Oct 3, 2012, 13:42 UTC
Message-ID
<CACsJy8DRxbjcRpbO30vOCo9D+TK_dDX_oiocZSOtnGAR2jAOFw@mail.gmail.com>
In-Reply-To
<506C3F23.9000009@web.de>
On Wed, Oct 3, 2012 at 8:35 PM, Jens Lehmann <Jens.Lehmann@web.de> wrote:
Show 5 quoted lines
> */foo/bar
> */*/foo/bar
> */*/*/foo/bar
>
> Using "**/foo/bar" instead would be a great improvement

If this "**/foo/bar" (i.e. no wildcards except one ** at the beginning) is popular, we could optimize this case, turning fmatch() into strncmp(), just like what we do for "foobar*"

-- 
Duy
Previous: Jens LehmannNext: Jens Lehmann
Message 6 of 9 in “[ENHANCEMENT] Allow '**' pattern in .gitignore”
  1. Ramkumar RamachandraOct 2, 2012
  2. Stefano LattariniOct 2, 2012
  3. Ramkumar RamachandraOct 2, 2012
  4. Nguyen Thai Ngoc DuyOct 3, 2012
  5. Jens LehmannOct 3, 2012
  6. Nguyen Thai Ngoc DuyOct 3, 2012
  7. Jens LehmannOct 3, 2012
  8. Joshua JensenOct 3, 2012
  9. Nguyen Thai Ngoc DuyOct 4, 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.