From 48748d86fc97777a8c71dad0e885aca107db73ce Mon Sep 17 00:00:00 2001 From: Brendan Enrick <2243498+benrick@users.noreply.github.com> Date: Fri, 25 Nov 2022 13:08:56 -0500 Subject: [PATCH] Create .gitattributes with Auto Line Endings (#21) * Create .gitattributes * Add additional attributes for other files --- .gitattributes | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 .gitattributes diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9ee7966 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,21 @@ + +############################################################################### +# Set default behavior to automatically normalize line endings. +############################################################################### +* text=auto + +# Force bash scripts to always use lf line endings so that if a repo is accessed +# in Unix via a file share from Windows, the scripts will work. +*.in text eol=lf +*.sh text eol=lf + +# Likewise, force cmd and batch scripts to always use crlf +*.cmd text eol=crlf +*.bat text eol=crlf + +*.cs text=auto diff=csharp +*.csproj text=auto +*.sln text=auto +*.resx text=auto +*.xml text=auto +*.txt text=auto