diff --git a/.gitattributes b/.gitattributes
new file mode 100644
index 0000000000000000000000000000000000000000..97a7235c95695db9c061b713d330a642f8f9915f
--- /dev/null
+++ b/.gitattributes
@@ -0,0 +1,27 @@
+*.h                     text diff=cpp
+*.c                     text diff=cpp
+*.cpp                   text diff=cpp
+*.java                   text diff=java
+
+*.txt                   text
+*.xml                   text
+*.html                   text diff=html
+*.dox                   text
+*.am                   text
+*.ac                   text
+*.m4                   text
+*.pro                   text
+*.in                   text
+*.1                   text
+Makefile                text
+Doxyfile                text
+
+*.py                    text diff=python
+*.pl                    text diff=perl
+*.pm                    text diff=perl
+*.base                    text diff=perl
+
+*.vcproj            text eol=crlf
+*.vcxproj*            text eol=crlf
+*.sln               text eol=crlf
+