Skip to content

Commit c13868c

Browse files
committed
fix: configure line endings explicitly
1 parent 895498f commit c13868c

1 file changed

Lines changed: 38 additions & 0 deletions

File tree

.gitattributes

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,45 @@
22
#
33
# SPDX-License-Identifier: CC0-1.0
44

5+
# LFS files
56
*.h5 filter=lfs diff=lfs merge=lfs -text
67
*.zip filter=lfs diff=lfs merge=lfs -text
8+
79
# SCM syntax highlighting & preventing 3-way merges
810
pixi.lock merge=binary linguist-language=YAML linguist-generated=true
11+
12+
# Line ending normalization
13+
* text=auto
14+
15+
# Shell scripts must use LF (even on Windows)
16+
*.sh text eol=lf
17+
18+
# NSIS scripts use LF
19+
*.nsi text eol=lf
20+
21+
# Windows batch files use CRLF
22+
*.bat text eol=crlf
23+
*.cmd text eol=crlf
24+
25+
# Python uses LF
26+
*.py text eol=lf
27+
28+
# Config/data files use LF
29+
*.yaml text eol=lf
30+
*.yml text eol=lf
31+
*.toml text eol=lf
32+
*.json text eol=lf
33+
*.csv text eol=lf
34+
*.tsv text eol=lf
35+
36+
# Binary files
37+
*.exe binary
38+
*.dll binary
39+
*.png binary
40+
*.jpg binary
41+
*.jpeg binary
42+
*.ico binary
43+
*.bmp binary
44+
*.gz binary
45+
*.tar binary
46+
*.pdf binary

0 commit comments

Comments
 (0)