From b7942e9f79da527b83b04581d8b62c871ddfd35c Mon Sep 17 00:00:00 2001 From: Bulat Kurbanov Date: Tue, 25 Nov 2025 11:44:26 +0100 Subject: [PATCH] Add .gitattributes for proper line endings and language detection --- .gitattributes | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 .gitattributes diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..4bf8e89 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,37 @@ +# Auto detect text files and perform LF normalization +* text=auto + +# Source code +*.c text +*.h text +*.js text +*.json text +*.rs text + +# Documentation +*.md text +*.txt text + +# Configuration +*.toml text +*.gyp text + +# Scripts +*.sh text eol=lf + +# Binary files +*.node binary +*.o binary +*.a binary +*.so binary +*.dylib binary +*.dll binary + +# Git +.gitattributes text +.gitignore text + +# Linguist overrides +src/parser.c linguist-generated +src/grammar.json linguist-generated +src/node-types.json linguist-generated