Create a gitattributes file
@@ -0,0 +1,5 @@
+.git* export-ignore
+.hg* export-ignore
+*.c diff=cpp
+*.cpp diff=cpp
+*.h diff=cpp