From a5244cbd8e2c628209151047d6c0bcb671ba5e93 Mon Sep 17 00:00:00 2001 From: Nelson Osacky Date: Tue, 21 Jan 2025 13:43:56 +0100 Subject: [PATCH] Add handling for windows .bat files This is based on this line in the Gradle/gradle repo: https://github.com/gradle/gradle/blob/master/.gitattributes#L9 --- Java.gitattributes | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Java.gitattributes b/Java.gitattributes index f62ade6..47ead5d 100644 --- a/Java.gitattributes +++ b/Java.gitattributes @@ -38,3 +38,6 @@ # Common build-tool wrapper scripts ('.cmd' versions are handled by 'Common.gitattributes') mvnw text eol=lf gradlew text eol=lf + +# These are explicitly windows files and should use crlf +*.bat text eol=crlf