You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucenenet.apache.org by ni...@apache.org on 2022/01/08 12:25:19 UTC

[lucenenet] 04/15: .gitattributes: Never checkout BASH scripts with Widows line endings

This is an automated email from the ASF dual-hosted git repository.

nightowl888 pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/lucenenet.git

commit 329c90addb12f8da63defcb8b3f160f932f64702
Author: Shad Storhaug <sh...@shadstorhaug.com>
AuthorDate: Sat Jan 8 11:29:51 2022 +0700

    .gitattributes: Never checkout BASH scripts with Widows line endings
---
 .gitattributes | 10 ++++++++--
 1 file changed, 8 insertions(+), 2 deletions(-)

diff --git a/.gitattributes b/.gitattributes
index 412eeda..6f5c6af 100644
--- a/.gitattributes
+++ b/.gitattributes
@@ -1,8 +1,8 @@
-# Auto detect text files and perform LF normalization
+# Auto detect text files and perform LF normalization
 * text=auto
 
 # Custom for Visual Studio
-*.cs     diff=csharp
+*.cs     eol=crlf diff=csharp
 *.sln    merge=union
 *.csproj merge=union
 *.vbproj merge=union
@@ -20,3 +20,9 @@
 *.PDF	 diff=astextplain
 *.rtf	 diff=astextplain
 *.RTF	 diff=astextplain
+
+# Batch Files
+build eol=lf
+*.sh eol=lf
+*.bat eol=crlf
+*.cmd eol=crlf
\ No newline at end of file