Skip to content

Commit 34289de

Browse files
committed
fix: minimal gitattributes
To minimize the area of influence of line ending enforcement, I added only bash scripts and makefiles to forced LF line ending.
1 parent ceb0e5e commit 34289de

File tree

1 file changed

+3
-48
lines changed

1 file changed

+3
-48
lines changed

.gitattributes

Lines changed: 3 additions & 48 deletions
Original file line numberDiff line numberDiff line change
@@ -1,48 +1,3 @@
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
1+
# POSIX-sensitive files: always LF
2+
*.sh text eol=lf
3+
Makefile text eol=lf

0 commit comments

Comments
 (0)