Browse Source

Добавить .gitattributes: EOL-политика (js/json/md/sh/py = LF, cmd/ps1/vbs = CRLF)

master
Serge Shutov 3 days ago
parent
commit
7fb6e433a2
  1. 31
      .gitattributes

31
.gitattributes vendored

@ -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
Loading…
Cancel
Save