From 009bd5135dffaa5967c592ab8d11ec90dbee1ffd Mon Sep 17 00:00:00 2001 From: Zelllll <56516451+Zelllll@users.noreply.github.com> Date: Sat, 5 Jul 2025 03:38:03 -0500 Subject: [PATCH] Update .gitattributes to be stricter with applying LF (#177) * Update .gitattributes * add .mk files --------- Co-authored-by: Yanis002 <35189056+Yanis002@users.noreply.github.com> --- .gitattributes | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) diff --git a/.gitattributes b/.gitattributes index 9e1af8aa0..dd2798fe8 100644 --- a/.gitattributes +++ b/.gitattributes @@ -1,5 +1,18 @@ -# Auto detect text files and perform LF normalization -* text eol=lf +# Apply LF only to known text/code file types +*.c text eol=lf +*.h text eol=lf +*.cpp text eol=lf +*.hpp text eol=lf +*.sh text eol=lf +*.py text eol=lf +*.js text eol=lf +*.json text eol=lf +*.md text eol=lf +*.txt text eol=lf +*.make text eol=lf +*.mk text eol=lf +Makefile text eol=lf + # Set browser syntax highlighting for certain files *.inc linguist-language=gas *.seq linguist-language=gas