Skip to content

Commit

Permalink
Enforce linux-style line endings for .rs and .toml (bevyengine#3197)
Browse files Browse the repository at this point in the history
# Objective

Fixes bevyengine#3160 

Unless I'm mistaken, the problem was caused by a simple typo

## Solution

- Fix the typo

Reference documentation: https://git-scm.com/docs/gitattributes#_eol

## Question

Are there other file-types that should be included here?
  • Loading branch information
Weibye committed Nov 26, 2021
1 parent f3d4be3 commit 72c888f
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions .gitattributes
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,11 @@

# Explicitly declare text files you want to always be normalized and converted
# to native line endings on checkout.
*.rs text eof=lf
*.toml text eof=lf
*.frag text
*.vert text
*.rs text eol=lf
*.toml text eol=lf
*.frag text eol=lf
*.vert text eol=lf
*.wgsl text eol=lf

# Declare files that will always have CRLF line endings on checkout.
*.sln text eol=crlf
Expand Down

0 comments on commit 72c888f

Please sign in to comment.