# ============================================================================ # Auto detect text files and normalize line endings # ============================================================================ * text=auto # ============================================================================ # Source code files # ============================================================================ *.c text diff=cpp *.h text diff=cpp *.cpp text diff=cpp *.hpp text diff=cpp *.cc text diff=cpp *.cxx text diff=cpp # ============================================================================ # Script files # ============================================================================ *.sh text eol=lf *.bash text eol=lf *.py text eol=lf *.pl text eol=lf *.rb text eol=lf # ============================================================================ # Build files # ============================================================================ Makefile text eol=lf *.mk text eol=lf *.cmake text eol=lf CMakeLists.txt text eol=lf # ============================================================================ # Configuration files # ============================================================================ *.json text eol=lf *.yaml text eol=lf *.yml text eol=lf *.xml text eol=lf *.toml text eol=lf *.ini text eol=lf *.cfg text eol=lf *.conf text eol=lf # ============================================================================ # Documentation files # ============================================================================ *.md text eol=lf *.rst text eol=lf *.txt text eol=lf *.tex text eol=lf # ============================================================================ # Binary files # ============================================================================ *.bin binary *.elf binary *.hex binary *.out binary *.o binary *.obj binary *.a binary *.so binary *.dll binary *.exe binary *.lib binary # ============================================================================ # Image files # ============================================================================ *.png binary *.jpg binary *.jpeg binary *.gif binary *.bmp binary *.ico binary *.svg text # ============================================================================ # Linker scripts # ============================================================================ *.ld text eol=lf *.lds text eol=lf # ============================================================================ # Assembly files # ============================================================================ *.s text eol=lf *.S text eol=lf *.asm text eol=lf # ============================================================================ # Git files # ============================================================================ .gitignore text eol=lf .gitattributes text eol=lf .gitmodules text eol=lf # ============================================================================ # Editor configuration # ============================================================================ .editorconfig text eol=lf .clang-format text eol=lf .clang-tidy text eol=lf # ============================================================================ # Specific files # ============================================================================ LICENSE text eol=lf CHANGELOG.md text eol=lf CONTRIBUTING.md text eol=lf SECURITY.md text eol=lf README.md text eol=lf # ============================================================================ # Language-specific settings # ============================================================================ *.c linguist-language=C *.h linguist-language=C *.cpp linguist-language=C++ *.hpp linguist-language=C++ *.py linguist-language=Python *.sh linguist-language=Shell *.md linguist-documentation # ============================================================================ # Diff settings # ============================================================================ *.c diff=cpp *.h diff=cpp *.cpp diff=cpp *.hpp diff=cpp *.py diff=python *.sh diff=bash *.md diff=markdown # ============================================================================ # Merge settings # ============================================================================ *.c merge=union *.h merge=union *.cpp merge=union *.hpp merge=union # ============================================================================ # Export ignore (files not included in archives) # ============================================================================ .gitattributes export-ignore .gitignore export-ignore .github export-ignore .vscode export-ignore build export-ignore