From: Gioele Barabucci Date: Thu, 13 Oct 2011 10:49:04 GMT Subject: Re: Git attributes ignored for root directory Message-ID: <4E96C220.5050601@svario.it> In-Reply-To: <7vfwix7qk2.fsf@alter.siamese.dyndns.org> On 13/10/2011 00:12, Junio C Hamano wrote: > Suppose you have a directory "foo" and want to say "I want to ignore > everything in that directory". You would say "foo/" in .gitignore in the > higher level and you are happy. > > How would you say the same thing if the directory to be ignored weren't > "foo" but at the top-level of the working tree? There is no such level > higher than the top-level where you can say "/" > in its .gitignore file. Shouldn't `/.` or `/./` work? I see that `/*/` in `.gitignores` successfully ignores all the non-hidden directories in the root project directory. Another accidental success? :) -- Gioele Barabucci