On Windows, opening with "w" opens it as text instead of binary. This causes translation of newline characters, so that "\n" turns into "\r\n", which in turn leads to git detecting that the file has changed and wanting to commit it. llvm-svn: 226220
On Windows, opening with "w" opens it as text instead of binary. This causes translation of newline characters, so that "\n" turns into "\r\n", which in turn leads to git detecting that the file has changed and wanting to commit it. llvm-svn: 226220