"Dmitry Kakurin" [off-list ref] 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?