diff --git a/.gitattributes b/.gitattributes index ca910c9..bb9e0d0 100644 --- a/.gitattributes +++ b/.gitattributes @@ -1,13 +1,59 @@ -# Auto detect text files and perform LF normalization -* text = auto -*.cs linguist-language = csharp -*.cpp linguist-language = C++ -*.hpp linguist-language = C++ -*.h linguist-language = C -*.rc linguist-language = Assembly -CMakeLists.txt linguist-language = CMake - -#ignore dirs/files +# Handle line endings automatically for files detected as text +# and leave all files detected as binary untouched. +* text=auto +# The above will handle all files NOT found below + + + +# These files are text and should be normalized (Convert crlf => lf) +.gitattributes text +.gitignore text +*.md text diff=Markdown +*.cs text diff=CSharp +*.cpp text diff=C++ +*.hpp text diff=C++ +*.h text diff=C +*.c text diff=C +*.rc text diff=Assembly +CMakeLists.txt text diff=CMake + + + +# Exclude files from exporting + +.gitattributes export-ignore +.gitignore export-ignore + + + +# Enable syntax highlighting for files with extensions. + +*.md linguist-language=Markdown +*.md linguist-detectable=true + +*.cs linguist-language=CSharp +*.cs linguist-detectable=true + +*.cpp linguist-language=C++ +*.cpp linguist-detectable=true + +*.hpp linguist-language=C++ +*.hpp linguist-detectable=true + +*.h linguist-language=C +*.h linguist-detectable=true + +*.c linguist-language=C +*.c linguist-detectable=true + +*.rc linguist-language=Assembly +*.rc linguist-detectable=true + +CMakeLists.txt linguist-language=CMake +CMakeLists.txt linguist-detectable=true + + +#Ignore dirs/files + DragonBurn/Resources/* linguist-vendored -DragonBurn/OS-ImGui/* linguist-vendored -DragonBurn/Utils/yaml-cpp/* linguist-vendored \ No newline at end of file +DragonBurn/Utils/yaml-cpp/* linguist-vendored