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

Re: .gitignore for large files?

From
Junio C Hamano <gitster@pobox.com>
Date
Jul 25, 2011, 18:59 UTC
Message-ID
<7vd3gyrxtl.fsf@alter.siamese.dyndns.org>
In-Reply-To
<CACsJy8B8kYU7bkD8SiK354z4u=sY3hHbe4JVwNT_1pxod1cqUw@mail.gmail.com>
Nguyen Thai Ngoc Duy <pclouds@gmail.com> writes:
Show 7 quoted lines
> While .gitattributes looks like a better place, it does not have
> "exclude" attribute equivalence to .gitignore. If I remember
> correctly, the way .gitignore and .gitattributes are implemented makes
> it very hard to turn .gitignore into part of .gitattributes
> implementation (gitattr checks .gitattributes of current dir first,
> then upward to parents, while .gitgnore follows the opposite
> direction).

While I do not think it is necessarily a good idea to invent yet another way to exclude and add it to the attributes mechanism (unless we will be dropping the support for gitignore, which is not the case), I do not know why you think the direction of the scan matters.

A more important difference is that the attribute mechanism covers the actual paths, not intermediate directories, unlike gitignore does.

Previous: Nguyen Thai Ngoc DuyNext: Philip Oakley
Message 5 of 6 in “.gitignore for large files?”
  1. Philip OakleyJul 23, 2011
  2. Nguyen Thai Ngoc DuyJul 24, 2011
  3. Philip OakleyJul 25, 2011
  4. Nguyen Thai Ngoc DuyJul 25, 2011
  5. Junio C HamanoJul 25, 2011
  6. Philip OakleyJul 25, 2011

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.