Add .gitattributes for proper line endings and language detection
This commit is contained in:
37
.gitattributes
vendored
Normal file
37
.gitattributes
vendored
Normal file
@@ -0,0 +1,37 @@
|
||||
# Auto detect text files and perform LF normalization
|
||||
* text=auto
|
||||
|
||||
# Source code
|
||||
*.c text
|
||||
*.h text
|
||||
*.js text
|
||||
*.json text
|
||||
*.rs text
|
||||
|
||||
# Documentation
|
||||
*.md text
|
||||
*.txt text
|
||||
|
||||
# Configuration
|
||||
*.toml text
|
||||
*.gyp text
|
||||
|
||||
# Scripts
|
||||
*.sh text eol=lf
|
||||
|
||||
# Binary files
|
||||
*.node binary
|
||||
*.o binary
|
||||
*.a binary
|
||||
*.so binary
|
||||
*.dylib binary
|
||||
*.dll binary
|
||||
|
||||
# Git
|
||||
.gitattributes text
|
||||
.gitignore text
|
||||
|
||||
# Linguist overrides
|
||||
src/parser.c linguist-generated
|
||||
src/grammar.json linguist-generated
|
||||
src/node-types.json linguist-generated
|
||||
Reference in New Issue
Block a user