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 #239.

Signed-off-by: Caen De Silva <[email protected]>
  • Loading branch information
ydalton authored and caendesilva committed Apr 29, 2024
1 parent 1aa6066 commit a0113de
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 a0113de

Please sign in to comment.