Fix line endings and some cleanup
This commit is contained in:
39
.gitattributes
vendored
Normal file
39
.gitattributes
vendored
Normal file
@@ -0,0 +1,39 @@
|
||||
# Auto-detect text files and normalize to LF in the repo
|
||||
* text=auto
|
||||
|
||||
# Explicit text rules
|
||||
*.md text
|
||||
*.txt text
|
||||
*.json text
|
||||
*.yml text
|
||||
*.yaml text
|
||||
*.toml text
|
||||
*.c text
|
||||
*.cpp text
|
||||
*.h text
|
||||
*.hpp text
|
||||
*.rs text
|
||||
*.py text
|
||||
*.go text
|
||||
*.js text
|
||||
*.ts text
|
||||
*.css text
|
||||
*.html text
|
||||
*.sh text eol=lf # scripts on Unix must be LF
|
||||
*.bash text eol=lf
|
||||
|
||||
# Windows-native scripts that should remain CRLF in working trees
|
||||
*.bat text eol=crlf
|
||||
*.cmd text eol=crlf
|
||||
*.ps1 text eol=crlf
|
||||
|
||||
# Binary (never touch line endings)
|
||||
*.png binary
|
||||
*.jpg binary
|
||||
*.jpeg binary
|
||||
*.gif binary
|
||||
*.pdf binary
|
||||
*.zip binary
|
||||
*.exe binary
|
||||
*.dll binary
|
||||
*.glb binary
|
||||
Reference in New Issue
Block a user