From 98842a2300936bf05b197198f31072ed1310bde4 Mon Sep 17 00:00:00 2001 From: Jason Ross Date: Fri, 26 Jun 2026 00:18:37 -0500 Subject: [PATCH] Add .gitattributes for consistent cross-platform line endings Keeps gradlew as LF (Unix shell), *.bat as CRLF, and treats jars/images as binary, independent of each contributor's core.autocrlf setting. Co-Authored-By: Claude Opus 4.8 --- .gitattributes | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 .gitattributes diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..d15b36a --- /dev/null +++ b/.gitattributes @@ -0,0 +1,19 @@ +# Normalize line endings across platforms. +* text=auto eol=lf + +# Windows scripts must keep CRLF. +*.bat text eol=crlf + +# The Gradle wrapper shell script must keep LF (it runs under sh on Unix/macOS). +gradlew text eol=lf + +# Treat these as binary. +*.jar binary +*.png binary +*.jpg binary +*.jpeg binary +*.webp binary +*.apk binary +*.aab binary +*.keystore binary +*.jks binary