From 8fe1bd5ef2dfef47c6c8827ca68eb14358e2704b Mon Sep 17 00:00:00 2001 From: Kazuyoshi Kato Date: Mon, 21 Feb 2022 21:01:58 +0000 Subject: [PATCH] Use CR+LF instead of LF regardless of OS Git by default uses CR+LF on Windows, whereas gofmt always uses LF even on Windows. This commit lets Git uses LF on Windows. Signed-off-by: Kazuyoshi Kato --- .gitattributes | 1 + 1 file changed, 1 insertion(+) create mode 100644 .gitattributes diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 000000000..d207b1802 --- /dev/null +++ b/.gitattributes @@ -0,0 +1 @@ +*.go text eol=lf