From: Junio C Hamano Date: Wed, 05 Sep 2007 08:14:44 GMT Subject: Re: .gitignore, .gitattributes, .gitmodules, .gitprecious?,.gitacls? etc. Message-ID: <7vk5r5jzpn.fsf@gitster.siamese.dyndns.org> In-Reply-To: "Dmitry Kakurin" writes: > I assert that since index does not have .gitattributes the one from > local directory should not be used. > > Think about dedicated build machine scenario: I have a machine that > always does sync + build. After every sync the local directory should > always be identical to what-was-committed. Thinking about the reason _why_ .gitattributes may be updated, one would notice that it is because somebody did this command sequence: git checkout ;# now work tree is clean edit .gitattributes ;# modify the attributes of a file edit file ;# edit the file attributes talks about git add file ;# this can be affected by .gitattributes git add .gitattributes ;# this is changed in the same commit git commit Now, should we always take .gitattributes from the index?