Add .gitattributes file (#187)

Ensure .sh scripts have LF and .bat scripts have CRLF in working directory.
Avoid conversion of Unix scripts to CRLF when checking out with
core.autocrlf=true, on Windows, what may cause shell failures.
This commit is contained in:
Mateusz Łoskot 2019-05-09 09:55:57 +02:00 committed by Hans Dembinski
parent 419280c0fc
commit 7008921080

6
.gitattributes vendored Normal file
View File

@ -0,0 +1,6 @@
# Set default behaviour, in case users don't have core.autocrlf set.
* text=auto !eol
# Scripts
*.bat text eol=crlf
*.sh text eol=lf