Skip to content

Commit

Permalink
.gitattributes: substitute CRLF only in text files
Browse files Browse the repository at this point in the history
Changing CRLF to LF makes sense for text files, but not images, where
doing so can lead to file corruption. This commit tells Git to ignore
binary files and only do the substitution in plain text files.

Fixes hydephp/hyde#239.
  • Loading branch information
ydalton committed Apr 29, 2024
1 parent c013d93 commit 8035fe8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .gitattributes
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
* text eol=lf
* text=auto eol=lf

*.blade.php diff=html
*.css diff=css
Expand Down

0 comments on commit 8035fe8

Please sign in to comment.