{"thread":{"id":"36227","subject":"Unexpected difference between core.autocrlf=true and .gitattributes text=auto","startedAt":"2014-03-19T13:44:42Z","lastAt":"2014-03-19T13:44:42Z","messageCount":1,"participants":["Marc Strapetz"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"237073","messageId":"53299F4A.6000600@syntevo.com","threadId":"36227","inReplyTo":null,"subject":"Unexpected difference between core.autocrlf=true and .gitattributes text=auto","fromName":"Marc Strapetz","fromEmail":"marc.strapetz@syntevo.com","sentAt":"2014-03-19T13:44:42Z","receivedAt":"2014-03-19T13:44:42Z","isPatch":false,"sender":{"key":"marc.strapetz@syntevo.com","avatar":"https://avatars.githubusercontent.com/u/3380730?v=4"},"body":"I have a file.txt which is stored with CRLF in the repository (I'm on\nWindows, but that should not matter). autocrlf has been set:\n\n$ git config core.autocrlf\ntrue\n\nGit considers the working tree clean:\n\n$ touch file.txt\n$ git status\nOn branch master\nnothing to commit, working directory clean\n\nHowever, when adding .gitattributes with following content:\n\n* text=auto\n\nGit starts considering the file as modified:\n\n$ touch file.txt\n$ git status\nOn branch master\nChanges not staged for commit:\n...\n\n        modified:   file.txt\n\nI think it's correct to consider the file as modified, because when\ncommitting it, it should be converted to CRLF.\n\nBut why doesn't it show up as modified in the first case?\n\n-Marc\n"}]}