From f499b568b0be093b96c74fe4a3de2aa18b5d58d2 Mon Sep 17 00:00:00 2001 From: Lex Darlog <3897975+Lex-DRL@users.noreply.github.com> Date: Fri, 12 Sep 2025 06:12:05 +0500 Subject: [PATCH] `.gitattributes`: auto-handle line endings --- .gitattributes | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/.gitattributes b/.gitattributes index 5b3c15bb47c2..38163df2dc82 100644 --- a/.gitattributes +++ b/.gitattributes @@ -1,3 +1,13 @@ +# Auto-detect text/binary by default + respect `core.autocrlf` setting for checkout, but still commit as LF. +* text=auto + +# Force UNIX line endings: both commit and checkout: +*.sh text eol=lf +*.py text eol=lf + +# Force Windows line endings on checkout, commit as LF: +*.bat text eol=crlf + /web/assets/** linguist-generated /web/** linguist-vendored comfy_api_nodes/apis/__init__.py linguist-generated