From 31103041973af595869731c1a13ac6a1bc072744 Mon Sep 17 00:00:00 2001 From: Xiaohan-Tian Date: Fri, 15 May 2026 13:50:39 -0700 Subject: [PATCH] fix: always use unix-style LF even in Windows --- .editorconfig | 9 +++++++++ .gitattributes | 5 +++++ 2 files changed, 14 insertions(+) create mode 100644 .editorconfig create mode 100644 .gitattributes diff --git a/.editorconfig b/.editorconfig new file mode 100644 index 0000000..fca82d2 --- /dev/null +++ b/.editorconfig @@ -0,0 +1,9 @@ +root = true + +[*] +end_of_line = lf +insert_final_newline = true +charset = utf-8 + +[*.{bat,cmd,ps1}] +end_of_line = crlf diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..fea410f --- /dev/null +++ b/.gitattributes @@ -0,0 +1,5 @@ +* text=auto eol=lf + +*.bat text eol=crlf +*.cmd text eol=crlf +*.ps1 text eol=crlf