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.