From 1f432fd648492914d5c7318ef83a6f3186652091 Mon Sep 17 00:00:00 2001 From: limbicnation Date: Thu, 5 Sep 2024 04:12:57 +0200 Subject: [PATCH] chore: add .gitattributes file for line endings and binary handling --- .gitattributes | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 .gitattributes diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..b2e2e15 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,27 @@ +# Handle line endings (CRLF for Windows, LF for Unix) +* text=auto + +# Ensure Python files use LF for Unix compatibility +*.py text eol=lf + +# Treat Markdown and YAML files as text +*.md text +*.yaml text +*.yml text + +# Handle images and binaries as binary +*.png binary +*.jpg binary +*.zip binary + +# Handle compiled files as binary (just in case you have any) +*.exe binary +*.dll binary +*.so binary + +# Ensure JSON files use LF line endings +*.json text eol=lf + +# Handle Node.js package lock file (if relevant) +package-lock.json merge=union +