]> git.ipfire.org Git - thirdparty/openvpn.git/commitdiff
cleanup: add .gitattributes to control eol style explicitly
authorAlon Bar-Lev <alon.barlev@gmail.com>
Mon, 2 Apr 2012 11:37:41 +0000 (14:37 +0300)
committerDavid Sommerseth <davids@redhat.com>
Thu, 26 Apr 2012 18:54:26 +0000 (20:54 +0200)
Having the text auto detection is a risk, as the detection may detect
text files that are not text and vise versa.

Having global setting will create confusion and differentiate between
users. So this patch also move this to local repository.

Having git to check out files differently in different OS is also
a not correct, as checkouts may be used in shares or in *NIX emulation
environments, so it have no effect.

Another issue is packaging, if we change out the tree differently
in several OSes, we may have different package content, which is
something that should be avoided.

Currently any editor of MS supports LF end of lines, so there is no
need to convert source files while checking out.

The visual studio files should be stored as CRLF as they are generated
by visual studio every save, in a way that CRLF are added.

I handled only the files that may be touch by MS users.

Signed-off-by: Alon Bar-Lev <alon.barlev@gmail.com>
Acked-by: Fabian Knittel <fabian.knittel@lettink.de>
Signed-off-by: David Sommerseth <davids@redhat.com>
.gitattributes [new file with mode: 0644]
Makefile.am

diff --git a/.gitattributes b/.gitattributes
new file mode 100644 (file)
index 0000000..34463f9
--- /dev/null
@@ -0,0 +1,7 @@
+*.c eol=lf
+*.h eol=lf
+*.rc eol=lf
+*.txt eol=lf
+*.bat eol=lf
+*.vc*proj* eol=crlf
+*.sln eol=crlf
index 68aa0a870d35f53e7664aa00b924949b4d3757d1..ab3e3d2e6336c8fec7996b697520fc81831110b4 100644 (file)
@@ -52,6 +52,7 @@ dist_doc_DATA = \
 
 dist_noinst_DATA = \
        .gitignore \
+       .gitattributes \
        PORTS \
        README.IPv6 TODO.IPv6 \
        README.polarssl \