From 4fcc4fd234f4590929d715e1705c3727ca3139d9 Mon Sep 17 00:00:00 2001 From: Robin Getz Date: Wed, 16 Sep 2026 16:29:21 -0400 Subject: [PATCH] Define repository-wide text and binary file attributes Normalize text files to LF and explicitly identify binary assets, generated, and vendor files so so Git does not apply line-ending conversion to them. Signed-off-by: Robin Getz --- .gitattributes | 49 ++++++++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 48 insertions(+), 1 deletion(-) diff --git a/.gitattributes b/.gitattributes index a23bfa2cc..6fd6e9396 100644 --- a/.gitattributes +++ b/.gitattributes @@ -1 +1,48 @@ -*.fits binary \ No newline at end of file +# Git attributes for SDRangel +# normalize text files to LF and identify binary files. +* text=auto eol=lf + +# Vendored Cesium content: preserve upstream line endings. +plugins/feature/map/Cesium/** -text + +# Generated Swagger UI files +sdrbase/resources/webapi/doc/swagger-ui/** -text + +# Generated Swagger documentation and client code +sdrbase/resources/webapi/doc/swagger/** -text +swagger/sdrangel/code/** -text + +# SDRangel configuration and preset files +*.cfgx binary +*.prex binary + +# Binary image files. +*.png binary +*.PNG binary +*.bmp binary +*.BMP binary +*.xcf binary +*.XCF binary +*.jpg binary +*.JPG binary +*.fits binary +*.FITS binary +*.ico binary +*.ICO binary +*.icns binary +*.icns binary +*.gif binary +*.GIF binary + +# Binary audio/media files. +*.wav binary +*.WAV binary +*.wasm binary +*.WASM binary + +# Binary fonts. +*.ttf binary +*.TTF binary + +# Binary document files. +*.odg binary