You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ranger.apache.org by pr...@apache.org on 2020/08/10 09:29:01 UTC

[ranger] 02/02: RANGER-2852: Add .gitattributes file to prevent CRLF and LF mismatches for source and text files

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

pradeep pushed a commit to branch ranger-2.0
in repository https://gitbox.apache.org/repos/asf/ranger.git

commit 10617e3d36e4c5b8716114408648b994afad10a2
Author: pradeep <pr...@apache.org>
AuthorDate: Wed Jun 10 14:30:33 2020 +0530

    RANGER-2852: Add .gitattributes file to prevent CRLF and LF mismatches for source and text files
---
 .gitattributes | 16 ++++++++++++++++
 1 file changed, 16 insertions(+)

diff --git a/.gitattributes b/.gitattributes
new file mode 100644
index 0000000..783358a
--- /dev/null
+++ b/.gitattributes
@@ -0,0 +1,16 @@
+# Auto detect text files and perform LF normalization
+*        text=auto
+
+*.java   text diff=java eol=lf
+*.html   text diff=html eol=lf
+*.py     text diff=python eol=lf
+*.css    text eol=lf
+*.js     text eol=lf
+*.sql    text eol=lf
+*.sh     text eol=lf
+*.xml    text eol=lf
+*.txt    text eol=lf
+*.json   text eol=lf
+*.jsp    text eol=lf
+*.csv    text eol=lf
+*.properties    text eol=lf