From 5638f39df235217457c31b7cffef7f6f1725bea1 Mon Sep 17 00:00:00 2001 From: Ivan Zorin Date: Tue, 24 Dec 2024 00:37:21 +0300 Subject: [PATCH] Set eol=lf in gitattributes --- .gitattributes | 39 +++++++++++++++++++++++++++++++++++++-- 1 file changed, 37 insertions(+), 2 deletions(-) diff --git a/.gitattributes b/.gitattributes index 9103071286..b94cb385ff 100644 --- a/.gitattributes +++ b/.gitattributes @@ -1,2 +1,37 @@ -# Ignore all differences in line endings -* -crlf \ No newline at end of file +# Set the default behavior, in case people don't have core.autocrlf set. + +* text=auto + + +# Explicitly declare source files as text to always be normalized and converted to native line endings on checkout. + +Makefile text eol=lf +.clang-format text eol=lf +*.Dockerfile text eol=lf + +*.c text eol=lf +*.h text eol=lf + +*.cpp text eol=lf +*.hpp text eol=lf + +*.S text eol=lf +*.ld text eol=lf +*.md text eol=lf +*.py text eol=lf +*.sh text eol=lf +*.bdf text eol=lf +*.cfg text eol=lf +*.txt text eol=lf +*.yml text eol=lf +*.html text eol=lf +*.json text eol=lf + +*.bmp binary eol=lf +*.pdf binary eol=lf +*.png binary eol=lf +*.pro binary eol=lf +*.sch binary eol=lf +*.svc binary eol=lf +*.svd binary eol=lf +