From ee22541ed39cf9c47574b4b52ce9d9b0557935f2 Mon Sep 17 00:00:00 2001 From: Jozef Behran Date: Mon, 3 Nov 2014 16:08:07 +0100 Subject: [PATCH] BUG 2298: Ask Git to normalize line endings 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 --- .gitattributes | 64 ++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 64 insertions(+) create mode 100644 .gitattributes diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000000..969d3a6542 --- /dev/null +++ b/.gitattributes @@ -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 -- 2.36.6