From 6aea1fe0f441928bf60b2e48676c4ebe0455fea9 Mon Sep 17 00:00:00 2001 From: Sergio Pedri Date: Mon, 14 Nov 2022 20:42:33 +0100 Subject: [PATCH] Switch default line endings to LF --- .gitattributes | 49 ++++++++++--------------------------------------- 1 file changed, 10 insertions(+), 39 deletions(-) diff --git a/.gitattributes b/.gitattributes index a5096e90..72f06abb 100644 --- a/.gitattributes +++ b/.gitattributes @@ -1,31 +1,13 @@ -# Set default file-type attributes +# All file types: +# - Treat as text +# - Normalize to LF line endings +* text eol=lf -# 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 +# Solution files and Windows scripts +# - Treat as text +# - Force to CRLF line endings (Windows-style) +*.sln text eol=crlf +*.slnf text eol=crlf *.bat text eol=crlf *.cmd text eol=crlf @@ -37,15 +19,4 @@ # 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 +*.cer binary \ No newline at end of file