From fbb27990508fee7184a32675c226799c7a8a7b11 Mon Sep 17 00:00:00 2001 From: Anthony LC Date: Mon, 2 Jun 2025 19:40:37 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=A7(git)=20set=20LF=20line=20endings?= =?UTF-8?q?=20for=20all=20text=20files?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Windows users are by default using CRLF line endings, which can cause issues with some tools and environments. This commit sets the `.gitattributes` file to enforce LF line endings for all text files in the repository. --- .gitattributes | 23 +++++++++++++++++++++++ CHANGELOG.md | 1 + 2 files changed, 24 insertions(+) create mode 100644 .gitattributes diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 00000000..1d8785ee --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +# Set the default behavior for all files +* text=auto eol=lf + +# Binary files (should not be modified) +*.png binary +*.jpg binary +*.jpeg binary +*.gif binary +*.ico binary +*.mov binary +*.mp4 binary +*.mp3 binary +*.flv binary +*.fla binary +*.swf binary +*.gz binary +*.zip binary +*.7z binary +*.ttf binary +*.woff binary +*.woff2 binary +*.eot binary +*.pdf binary \ No newline at end of file diff --git a/CHANGELOG.md b/CHANGELOG.md index 3ff873ca..ac0055d9 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -21,6 +21,7 @@ and this project adheres to -🐛(frontend) table of content disappearing #982 -🐛(frontend) fix multiple EmojiPicker #1012 -🐛(frontend) fix meta title #1017 +-🔧(git) set LF line endings for all text files #1032 ## [3.3.0] - 2025-05-06