From 23168c41ce4d808add4a2e7c2bff5cd7872553b3 Mon Sep 17 00:00:00 2001 From: Gabriel Ferreira Date: Thu, 12 Sep 2024 11:33:08 +0200 Subject: [PATCH] gitattributes: Set text files to LF endings Avoids bash shebang issues on Windows --- .gitattributes | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.gitattributes b/.gitattributes index 63a1629cb..d9130e665 100644 --- a/.gitattributes +++ b/.gitattributes @@ -1,2 +1,6 @@ -src/*/bindings/* linguist-generated=true +# Use the following to delete tracked source files and replace them with LF endings +# git ls-files -z | xargs -0 rm +# git reset --hard +# Force LF endings to text files +* text=auto eol=lf