From 0973aad7e6bf707408702a89effb9fbd46e724ef Mon Sep 17 00:00:00 2001 From: Leroy Hopson Date: Sat, 17 Jul 2021 11:58:36 +0700 Subject: [PATCH] Update .gitattributes - GitHub language detection. - Normalize EOL for text files. Based on . --- .gitattributes | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/.gitattributes b/.gitattributes index 0a79690..6d7ea8d 100644 --- a/.gitattributes +++ b/.gitattributes @@ -1,2 +1,15 @@ -# linguist override to identify .gd files as GDScript rather than GAP. +# Properly detect languages on Github. +*.h linguist-language=cpp *.gd linguist-language=GDScript + +# Normalize EOL for all files that Git considers text files. +* text=auto eol=lf +# The above only works properly for Git 2.10+, so for older versions +# we need to manually list the binary files we don't want modified. +*.dll binary +*.dylib binary +*.png binary +*.so binary +*.ttf binary +*.wasm binary +*.wav binary