Update .gitattributes to enhance text file handling and mark additional file types for LF normalization and binary detection
This commit is contained in:
parent
493dbd2acb
commit
d13fa74368
38
.gitattributes
vendored
38
.gitattributes
vendored
@ -1,5 +1,39 @@
|
|||||||
|
# Auto detect text files and perform LF normalization
|
||||||
|
* text=auto
|
||||||
|
|
||||||
|
# Go files
|
||||||
|
*.go text eol=lf
|
||||||
|
|
||||||
|
# Config files
|
||||||
|
*.json text eol=lf
|
||||||
|
*.yaml text eol=lf
|
||||||
|
*.yml text eol=lf
|
||||||
|
*.toml text eol=lf
|
||||||
|
*.md text eol=lf
|
||||||
|
|
||||||
|
# JavaScript/TypeScript files
|
||||||
|
*.js text eol=lf
|
||||||
|
*.jsx text eol=lf
|
||||||
|
*.ts text eol=lf
|
||||||
|
*.tsx text eol=lf
|
||||||
|
*.html text eol=lf
|
||||||
|
*.css text eol=lf
|
||||||
|
|
||||||
|
# Shell scripts
|
||||||
|
*.sh text eol=lf
|
||||||
|
|
||||||
|
# Binary files
|
||||||
|
*.png binary
|
||||||
|
*.jpg binary
|
||||||
|
*.jpeg binary
|
||||||
|
*.gif binary
|
||||||
|
*.ico binary
|
||||||
|
*.woff binary
|
||||||
|
*.woff2 binary
|
||||||
|
|
||||||
|
# ============================================
|
||||||
|
# GitHub Linguist - Language Detection
|
||||||
|
# ============================================
|
||||||
# Mark web frontend as vendored so GitHub recognizes this as a Go project
|
# Mark web frontend as vendored so GitHub recognizes this as a Go project
|
||||||
web/** linguist-vendored
|
web/** linguist-vendored
|
||||||
|
|
||||||
# Also mark electron files as vendored
|
|
||||||
electron/** linguist-vendored
|
electron/** linguist-vendored
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user