From 4a6ab2b37d95df1982145e7d89c04c7c7a7a8600 Mon Sep 17 00:00:00 2001 From: Alano Terblanche <18033717+Benehiko@users.noreply.github.com> Date: Thu, 29 Aug 2024 18:37:21 +0200 Subject: [PATCH] fix: binary file line endings Signed-off-by: Alano Terblanche <18033717+Benehiko@users.noreply.github.com> --- .gitattributes | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/.gitattributes b/.gitattributes index 633021a07c..5152817b12 100644 --- a/.gitattributes +++ b/.gitattributes @@ -1,5 +1,14 @@ -* text=auto eol=lf +* text=auto + Dockerfile* linguist-language=Dockerfile vendor.mod linguist-language=Go-Module vendor.sum linguist-language=Go-Checksums -*.bat text eol=crlf + +*.go -text diff=golang + +# scripts directory contains shell scripts +# without extensions, so we need to force +scripts/** text=auto eol=lf + +# shell scripts should always have LF +*.sh text eol=lf