From 87f6c8cd20a49bec48d8ab6395f2ccfd6b87a3aa Mon Sep 17 00:00:00 2001 From: Arturo Bernal Date: Tue, 17 Nov 2026 07:51:48 +0100 Subject: [PATCH] Fix the line endings of the working tree with a .gitattributes file A checkout on Windows with core.autocrlf=true gave CRLF in the working tree, and a source release built from it had CRLF in the text files, including the shell scripts. The files now have LF in every system, and the Windows scripts CRLF. --- .gitattributes | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 .gitattributes diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000000..2892d44d8d --- /dev/null +++ b/.gitattributes @@ -0,0 +1,7 @@ +# Line endings: the files of the working tree have LF on every system, so the sources that are +# packaged in a release do not depend on the core.autocrlf setting of whoever builds it. +* text=auto eol=lf + +# Windows scripts +*.bat text=auto eol=crlf +*.cmd text=auto eol=crlf