Update .gitattributes to cover all text files

* text=auto does not affect files that already have been commited as 
CRLF. We need to explicitely set the text attributes for these files to 
enable line conversion.
This commit is contained in:
Felix Kauselmann 2018-08-07 11:02:26 +02:00
parent d3b8f4d5b8
commit f139510a51

23
.gitattributes vendored
View File

@ -34,6 +34,7 @@
*.tab text *.tab text
*.tsv text *.tsv text
*.sql text *.sql text
*.txt text
# Graphics # Graphics
*.png binary *.png binary
@ -43,6 +44,7 @@
*.tif binary *.tif binary
*.tiff binary *.tiff binary
*.ico binary *.ico binary
*.icns binary
# SVG treated as an asset (binary) by default. If you want to treat it as text, # SVG treated as an asset (binary) by default. If you want to treat it as text,
# comment-out the following line and uncomment the line after. # comment-out the following line and uncomment the line after.
*.svg binary *.svg binary
@ -50,8 +52,10 @@
*.eps binary *.eps binary
# Sources # Sources
*.bat text eol=crlf
*.c text *.c text
*.cc text *.cc text
*.css text
*.cxx text *.cxx text
*.cpp text *.cpp text
*.c++ text *.c++ text
@ -59,7 +63,26 @@
*.h text *.h text
*.h++ text *.h++ text
*.hh text *.hh text
*.html text
*.m text
*.mm text
*.patch text
*.sh text eol=lf
*.tpl text
# Qt specific
*.qm text
*.qml text *.qml text
*.qrc text
*.pro text
*.pri text
*.rc text
*.ts text
*.qm text
# Git
.gitignore text
.gitattributes text
# Compiled Object files # Compiled Object files
*.slo binary *.slo binary