Skip to content

Commit 2eb379a

Browse files
authored
Add .gitattributes to normalize line endings to LF (#930)
Enforce LF line endings repo-wide for all text files so contributors' local git config and editors can't introduce CRLF. A recent edit to proposals/http/wit-0.3.0-draft/worlds.wit was committed with CRLF endings, which made the entire file appear changed in diffs even on untouched lines. Signed-off-by: Bailey Hayes <bailey@cosmonic.com>
1 parent 96707a5 commit 2eb379a

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

.gitattributes

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# Normalize line endings to LF in the repository for all text files.
2+
# Binary files are auto-detected and left untouched.
3+
* text=auto eol=lf

0 commit comments

Comments
 (0)