From ec0042081ea104d5dd0ee291105210e00a4fe3d9 Mon Sep 17 00:00:00 2001 From: Anonymous Maarten Date: Thu, 10 Aug 2023 17:42:36 +0200 Subject: [PATCH] Add .gitattributes file On Windows, cmake/xxd.py generates text files with \r\n eol. Because the in-repo files were stored with \n, and git considered them as binary files, they were always considered out of date. An alternative fix could be to let xxd.py generate binary files with \n. But a .gitattributes file should also avoid people accidentally converting line endings. --- .gitattributes | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 .gitattributes diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000000..56cee30233 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,12 @@ +*.c text +*.cpp text +*.h text +*.cmake text +*.py text +*.txt text +*.sh text +*.vcxproj text eol=crlf +*.sln text eol=crlf +*.filters text eol=crlf +*.appxmanifest text eol=crlf +*.pbxproj text