From 6af1b03c35b1dedba61da2fb42f754da689162b9 Mon Sep 17 00:00:00 2001 From: pleb Date: Wed, 1 Jul 2026 20:47:58 -0700 Subject: [PATCH] Add line-ending policy and renormalize to LF --- .editorconfig | 18 ++++++++++++++++++ .gitattributes | 17 +++++++++++++++++ 2 files changed, 35 insertions(+) create mode 100644 .editorconfig create mode 100644 .gitattributes diff --git a/.editorconfig b/.editorconfig new file mode 100644 index 0000000..2503309 --- /dev/null +++ b/.editorconfig @@ -0,0 +1,18 @@ +root = true + +[*] +charset = utf-8 +end_of_line = lf +insert_final_newline = true +trim_trailing_whitespace = true +indent_style = space +indent_size = 4 + +[*.{md,markdown}] +trim_trailing_whitespace = false + +[*.{nix,yml,yaml}] +indent_size = 2 + +[Makefile] +indent_style = tab diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..33e2306 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,17 @@ +# Normalize text files to LF in the repository. +* text=auto eol=lf + +# Windows scripts should stay CRLF when present. +*.bat text eol=crlf +*.cmd text eol=crlf +*.ps1 text eol=crlf + +# Binary assets +*.dll binary +*.exe binary +*.gif binary +*.ico binary +*.jpeg binary +*.jpg binary +*.png binary +*.zip binary