diff --git a/.gitattributes b/.gitattributes
index d45620912eebdefd549c4d30d9da82cb22cabc3e..7751149ac07713a953529c5e8ba579109d76356d 100644
--- a/.gitattributes
+++ b/.gitattributes
@@ -1,3 +1,12 @@
+#Source code
+/src/*.c text=auto
+/src/*.h text=auto
+/src/*.s text=auto
+/src/*.m text=auto
+/src/*.xpm text=auto
+/src/Makefile text=auto
+/src/Make*.cfg text=auto
+/src/CMakeLists.txt text=auto
 # Windows EOL
 *.cs -crlf -whitespace
 *.mk -crlf -whitespace