Skip to content

Commit d718399

Browse files
committed
Normalize line endings via .gitattributes
1 parent 6a0cf68 commit d718399

File tree

1 file changed

+48
-0
lines changed

1 file changed

+48
-0
lines changed

.gitattributes

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
# Normalize all text; let Git detect text vs binary
2+
* text=auto
3+
4+
# Code & scripts (force LF in working tree)
5+
*.py eol=lf
6+
*.pyi eol=lf
7+
*.pyx eol=lf
8+
*.pxd eol=lf
9+
*.pxi eol=lf
10+
*.c eol=lf
11+
*.h eol=lf
12+
13+
*.sh eol=lf
14+
scripts/* eol=lf
15+
Makefile eol=lf
16+
docs/Makefile eol=lf
17+
18+
# Config / metadata
19+
*.toml eol=lf
20+
*.cfg eol=lf
21+
*.ini eol=lf
22+
*.yml eol=lf
23+
*.yaml eol=lf
24+
*.json eol=lf
25+
*.in eol=lf
26+
27+
# Documentation
28+
*.rst eol=lf
29+
*.md eol=lf
30+
*.txt eol=lf
31+
32+
# Git / CI files
33+
.gitattributes eol=lf
34+
.gitignore eol=lf
35+
.github/** eol=lf
36+
37+
# Binary assets
38+
*.png binary
39+
*.jpg binary
40+
*.jpeg binary
41+
*.gif binary
42+
*.webp binary
43+
*.ico binary
44+
*.mp4 binary
45+
*.mov binary
46+
*.avi binary
47+
*.mkv binary
48+
*.wav binary

0 commit comments

Comments
 (0)