From 3c1d3fbeccca00ce4f872be25c5add26f05ca1d2 Mon Sep 17 00:00:00 2001 From: Max-Julian Jakobitsch Date: Fri, 14 Jun 2024 18:52:33 +0200 Subject: [PATCH 1/2] fix: eol settings only affects windows users --- .gitattributes | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.gitattributes b/.gitattributes index 2257cac4e5..f875ea24c0 100644 --- a/.gitattributes +++ b/.gitattributes @@ -1,5 +1,5 @@ # Set the default behavior, in case people don't have core.autocrlf set. -* text=auto +* text=auto eol=lf # Explicitly declare text files you want to always be normalized and converted # to native line endings on checkout. From 071c9cef537478485a5d6255dec688a24e9ee644 Mon Sep 17 00:00:00 2001 From: Max Jakobitsch Date: Thu, 19 Sep 2024 02:25:52 +0200 Subject: [PATCH 2/2] Apply suggestions from code review add reminder why this is necessary directly to file Co-authored-by: NeroBurner --- .gitattributes | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.gitattributes b/.gitattributes index f875ea24c0..7adb0e69a6 100644 --- a/.gitattributes +++ b/.gitattributes @@ -1,8 +1,9 @@ # Set the default behavior, in case people don't have core.autocrlf set. +# Prevent build errors on non lf systems (like Windows), we need files with lf as newlines. * text=auto eol=lf # Explicitly declare text files you want to always be normalized and converted -# to native line endings on checkout. +# to lf line endings on checkout. *.c text *.cpp text *.h text