BUG 2298: Ask Git to normalize line endings 66/12466/4
authorJozef Behran <jozef.behran@pantheon.sk>
Mon, 3 Nov 2014 15:08:07 +0000 (16:08 +0100)
committerGerrit Code Review <gerrit@opendaylight.org>
Thu, 17 Sep 2015 10:19:40 +0000 (10:19 +0000)
Added file attributes configuration file to make GIT aware
of which files are textual and which are binary and allow
it to normalize the line endings in the textual files
without the developers needing to do any special setup on
their Git installation.

Change-Id: I2d4e9fb4eeeab2893209741781e13c7cdfe1b01d
Signed-off-by: Jozef Behran <jozef.behran@pantheon.sk>
.gitattributes [new file with mode: 0644]

diff --git a/.gitattributes b/.gitattributes
new file mode 100644 (file)
index 0000000..969d3a6
--- /dev/null
@@ -0,0 +1,64 @@
+# Set the default behavior, in case people don't have core.autocrlf set.
+* text=auto
+
+# Denote all files that are truly binary and should not be modified.
+*.png binary
+*.jpg binary
+*.gif binary
+*.jar binary
+*.ico binary
+*.dat binary
+*MessagesData binary
+*TestData binary
+
+# Explicitly declare text files you want to always be normalized and
+# converted to native line endings on checkout. Here file extensions are
+# declared.
+*.py text
+*.txt text
+*.java text
+*.jsp text
+*.xtend text
+*.xml text
+*.xml2 text
+*.xsd text
+*.yang text
+*.conf text
+*.properties text
+*.html text
+*.css text
+*.js text
+*.jj text
+*.json text
+*.tooling text
+*.factories text
+*.handlers text
+*.schemas text
+*.proto text
+*.less text
+*.sh text
+*.bat text
+*.ini text
+*.cfg text
+*.launch text
+*.target text
+
+# In this section individual file names and other weird file patterns are
+# declared.
+COPYING text
+LICENSE text
+NOTICE text
+README text
+README.OPENDAYLIGHT text
+README-* text
+README_* text
+Makefile text
+.git* text
+*-ok text
+*-fail text
+*-module text
+.checkstyle text
+karaf text
+instance text
+setenv text
+RSA.pk text