Skip to content

Commit c9f4a53

Browse files
SpaceFoonclaude
andcommitted
fix: enforce LF line endings to prevent cross-platform issues
- Configure .gitattributes to force LF for text files - Keep CRLF for Windows scripts (.bat, .ps1) - Prevents line ending conflicts between Windows and Linux 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
1 parent fcdf1fc commit c9f4a53

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

.gitattributes

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,9 @@
1-
# Auto detect text files and perform LF normalization
2-
* text=auto
1+
# Force LF line endings for all text files
2+
* text=auto eol=lf
3+
4+
# Ensure shell scripts always use LF
5+
*.sh text eol=lf
6+
7+
# Windows scripts can keep CRLF
8+
*.bat text eol=crlf
9+
*.ps1 text eol=crlf

0 commit comments

Comments
 (0)