From 9ff122d104d7dce81669a91dac241fee1baf4209 Mon Sep 17 00:00:00 2001 From: lbruun <32431476+lbruun@users.noreply.github.com> Date: Thu, 21 Jan 2021 22:54:56 +0100 Subject: [PATCH] Update .gitattributes - support for shell scripts Added support for Windows shell scripts (`.bat` and `.cmd`) Added support for Linux/MacOS shell scripts (`.sh`) --- .gitattributes | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.gitattributes b/.gitattributes index af377bfa4beb..b96c7fd9854e 100644 --- a/.gitattributes +++ b/.gitattributes @@ -7,10 +7,12 @@ # Define some file types explicitly as being text. # This makes sure that we can never inadvertently get # a file of this type into the repo with a line ending -# other than the Unix-style line ending. +# other than the one designated below. # This will also override the user's own global git settings # for these file types. +*.bat text eol=crlf +*.cmd text eol=crlf *.css text eol=lf *.dtd text eol=lf *.form text eol=lf @@ -21,6 +23,7 @@ *.md text eol=lf *.properties text eol=lf *.scss text eol=lf +*.sh text eol=lf *.svg text eol=lf *.txt text eol=lf *.xml text eol=lf