From: Junio C Hamano Date: Mon, 25 Jul 2011 18:59:18 GMT Subject: Re: .gitignore for large files? Message-ID: <7vd3gyrxtl.fsf@alter.siamese.dyndns.org> In-Reply-To: Nguyen Thai Ngoc Duy writes: > 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.