Skip to content

Commit fdaf2f4

Browse files
ci: fix line endings windows
1 parent 0dc9170 commit fdaf2f4

File tree

1 file changed

+30
-0
lines changed

1 file changed

+30
-0
lines changed

.gitattributes

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
# Ensure consistent line endings across platforms
2+
# All text files should use LF (Unix) line endings
3+
4+
# Default behavior: normalize line endings to LF on checkin,
5+
# but allow platform-specific line endings on checkout
6+
* text=auto
7+
8+
# Force LF line endings for specific file types that should always be consistent
9+
*.go text eol=lf
10+
*.yaml text eol=lf
11+
*.yml text eol=lf
12+
*.json text eol=lf
13+
*.md text eol=lf
14+
*.txt text eol=lf
15+
*.sh text eol=lf
16+
17+
# Test data files should always use LF to match Go's YAML output
18+
testdata/**/*.yaml text eol=lf
19+
testdata/**/*.yml text eol=lf
20+
testdata/**/*.json text eol=lf
21+
22+
# Binary files should not be normalized
23+
*.png binary
24+
*.jpg binary
25+
*.jpeg binary
26+
*.gif binary
27+
*.ico binary
28+
*.pdf binary
29+
*.zip binary
30+
*.tar.gz binary

0 commit comments

Comments
 (0)