1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
# Ensure consistent line endings across platforms
# This prevents WSL/Windows/Linux differences that can cause formatting issues
# Default: auto-detect text files and normalize to LF
* text=auto eol=lf
# Explicitly declare text files
*.rs text eol=lf
*.toml text eol=lf
*.md text eol=lf
*.yml text eol=lf
*.yaml text eol=lf
*.json text eol=lf
*.sh text eol=lf
*.sql text eol=lf
*.txt text eol=lf
# Configuration files
.gitignore text eol=lf
.gitattributes text eol=lf
Cargo.lock text eol=lf -diff
# Windows-specific files need CRLF
*.bat text eol=crlf
*.cmd text eol=crlf
*.ps1 text eol=crlf
# Binary files
*.png binary
*.jpg binary
*.jpeg binary
*.gif binary
*.ico binary
*.woff binary
*.woff2 binary
*.ttf binary
*.eot binary
*.db binary
*.sqlite binary
*.sqlite3 binary
# Git LFS (if used in future)
# *.db filter=lfs diff=lfs merge=lfs -text