Skip to content

Commit 2fd6dd2

Browse files
committed
Add .gitattributes to enforce LF line endings
1 parent d8040d8 commit 2fd6dd2

File tree

1 file changed

+34
-0
lines changed

1 file changed

+34
-0
lines changed

.gitattributes

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
# Enforce LF for all text files across platforms
2+
* text=auto eol=lf
3+
4+
# Common text types (explicit for clarity)
5+
*.sh text
6+
*.bash text
7+
*.py text
8+
*.toml text
9+
*.json text
10+
*.yml text
11+
*.yaml text
12+
*.md text
13+
*.cfg text
14+
*.ini text
15+
Dockerfile text
16+
Makefile text
17+
makefile text
18+
19+
# Windows-only scripts (if ever added)
20+
*.bat text eol=crlf
21+
*.cmd text eol=crlf
22+
23+
# Binary files (no line ending normalization)
24+
*.png binary
25+
*.jpg binary
26+
*.jpeg binary
27+
*.gif binary
28+
*.ico binary
29+
*.pdf binary
30+
*.zip binary
31+
*.tar binary
32+
*.gz binary
33+
*.tgz binary
34+
*.xz binary

0 commit comments

Comments
 (0)