diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000000..36e0b0c7cb --- /dev/null +++ b/.gitattributes @@ -0,0 +1,7 @@ +# Default: CRLF on checkout - primary tooling is Visual Studio / PowerShell on Windows. +# Git always stores text as LF in the object store; eol= controls the working tree only. +* text=auto eol=crlf + +# Patch files must stay LF - git apply matches content lines against the target source +# tree, which vcpkg manages as LF internally +*.patch text eol=lf