diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..8dde3d8 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,31 @@ +# EOL policy for dsh-memory. +# Repo lives on Ubuntu 18, working copy on Windows with core.autocrlf=true. +# These rules override autocrlf per file type. + +* text=auto + +# Source and data: always LF (Unix-compatible, safe for cross-platform transfer) +*.js text eol=lf +*.mjs text eol=lf +*.cjs text eol=lf +*.json text eol=lf +*.md text eol=lf +*.txt text eol=lf +*.sh text eol=lf +*.py text eol=lf +*.yml text eol=lf +*.yaml text eol=lf +*.gitattributes text eol=lf +*.gitignore text eol=lf + +# Windows-only launchers: always CRLF (LF breaks cmd.exe / powershell) +*.cmd text eol=crlf +*.bat text eol=crlf +*.ps1 text eol=crlf +*.vbs text eol=crlf + +# Binary: no conversion +*.png binary +*.jpg binary +*.ico binary +*.svg text eol=lf