From 32c64be4ed7413b6a722736cb458dc762698caf8 Mon Sep 17 00:00:00 2001 From: Sergio Pedri Date: Fri, 14 Oct 2022 20:16:13 +0200 Subject: [PATCH] Port .gitattributes file from .NET Community Toolkit --- .gitattributes | 51 ++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 51 insertions(+) create mode 100644 .gitattributes diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 00000000..a5096e90 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,51 @@ +# Set default file-type attributes + +# All file types +* text=auto + +# Markups +*.md text=auto diff=markdown +*.mdx text=auto diff=markdown + +# Solutions +*.sln text=auto eol=crlf +*.slnx text=auto + +# Projects +*.*proj text=auto +*.tasks text=auto +*.props text=auto +*.targets text=auto + +# Sources +*.cs text=auto diff=csharp +*.csx text=auto diff=csharp +*.fs text=auto diff=fsharp +*.resx text=auto + +# Scripts +*.in text eol=lf +*.sh text eol=lf +*.bat text eol=crlf +*.cmd text eol=crlf + +# Images +*.png binary +*.jpg binary +*.gif binary + +# Keys +*.snk binary +*.pfx binary +*.cer binary + +# Others + +# Preserve Line endings in diff and patch files +*.diff -text +*.patch -text + +# Exclude git meta files from exporting +.gitattributes export-ignore +.gitignore export-ignore +.gitkeep export-ignore \ No newline at end of file