Skip to content

Commit

Permalink
add .gitattributes file to enforce lf line-endings
Browse files Browse the repository at this point in the history
  • Loading branch information
batpad committed Aug 5, 2021
1 parent 42fe39b commit bf0e892
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# We'll let Git's auto-detection algorithm infer if a file is text. If it is,
# enforce LF line endings regardless of OS or git configurations.
* text=auto eol=lf

# Isolate binary files in case the auto-detection algorithm fails and
# marks them as text files (which could brick them).
*.{png,jpg,jpeg,gif,webp,woff,woff2} binary

0 comments on commit bf0e892

Please sign in to comment.