From 55e0ef78d321f602b5db6c6fdb04979bb1639efb Mon Sep 17 00:00:00 2001 From: Elliott Chen Date: Wed, 25 Dec 2024 17:28:47 +0800 Subject: [PATCH 1/3] feat: updating git line ending --- .gitattributes | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.gitattributes b/.gitattributes index d3662066..03db9279 100644 --- a/.gitattributes +++ b/.gitattributes @@ -1,5 +1,5 @@ -# Treat all text files as text and normalize to LF in the repository +# Set the default behavior, in case people don't have core.autocrlf set. * text=auto -# Force LF for shell scripts or config files -*.sh text eol=lf +# Declare files that will always have CRLF line endings on checkout. +*.sln text eol=crlf *.config text eol=lf \ No newline at end of file From 57d1a961ef5c2c5ae52b416e906de56563d9d50a Mon Sep 17 00:00:00 2001 From: Elliott Chen Date: Wed, 25 Dec 2024 17:44:29 +0800 Subject: [PATCH 2/3] feat: updating git attribute --- .gitattributes | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.gitattributes b/.gitattributes index 03db9279..0aeec35e 100644 --- a/.gitattributes +++ b/.gitattributes @@ -1,5 +1,10 @@ # Set the default behavior, in case people don't have core.autocrlf set. * text=auto + +# Shell scripts use LF as line separator, even checked out to Windows(NTFS) file-system +*.sh text eol=lf + # Declare files that will always have CRLF line endings on checkout. *.sln text eol=crlf -*.config text eol=lf \ No newline at end of file + +*.config text eol=lf From 7d0f49339a0530e668efd4f1740a49c6632581d5 Mon Sep 17 00:00:00 2001 From: Elliott Chen Date: Wed, 25 Dec 2024 17:53:15 +0800 Subject: [PATCH 3/3] feat: updating git attribute --- .gitattributes | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/.gitattributes b/.gitattributes index 0aeec35e..7c322d24 100644 --- a/.gitattributes +++ b/.gitattributes @@ -1,10 +1,2 @@ -# Set the default behavior, in case people don't have core.autocrlf set. -* text=auto - # Shell scripts use LF as line separator, even checked out to Windows(NTFS) file-system -*.sh text eol=lf - -# Declare files that will always have CRLF line endings on checkout. -*.sln text eol=crlf - -*.config text eol=lf +*.sh text eol=lf \ No newline at end of file