Skip to content

Commit

Permalink
chore: add gitattributes to enforce LF line endings
Browse files Browse the repository at this point in the history
  • Loading branch information
Molier committed Nov 29, 2024
1 parent 9bdd040 commit a4f93c3
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# Set default behavior to LF
* text=auto eol=lf

# Explicitly declare files that should always use LF
*.py text eol=lf
*.json text eol=lf
*.md text eol=lf
*.yaml text eol=lf
*.yml text eol=lf
*.sh text eol=lf
*.ndjson text eol=lf
*.html text eol=lf
*.toml text eol=lf
*.txt text eol=lf
*.dat text eol=lf
*.lock text eol=lf

# Denote all files that are truly binary and should not be modified
*.png binary
*.jpg binary
*.gif binary

0 comments on commit a4f93c3

Please sign in to comment.