From 04b8de17f88fb4658e5c36ac326932feec4d3e41 Mon Sep 17 00:00:00 2001 From: Richie Bendall Date: Thu, 31 Jan 2019 16:15:07 +1300 Subject: [PATCH 1/2] Begin creating Go gitattributes file (Closes #82) --- Go.gitattributes | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 Go.gitattributes diff --git a/Go.gitattributes b/Go.gitattributes new file mode 100644 index 0000000..d2f212e --- /dev/null +++ b/Go.gitattributes @@ -0,0 +1,10 @@ +# Treat all files in this repo as binary, with no git magic updating +# line endings. Windows users contributing to Go will need to use a +# modern version of git and editors capable of LF line endings. +# +# We'll prevent accidental CRLF line endings from entering the repo +# via the git-review gofmt checks. +# +# See golang.org/issue/9281 + +* -text From 7ff754d12095abb31d2604a58fbb7754da6ce157 Mon Sep 17 00:00:00 2001 From: Richie Bendall Date: Thu, 7 Feb 2019 20:46:07 +1300 Subject: [PATCH 2/2] Update Go.gitattributes --- Go.gitattributes | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/Go.gitattributes b/Go.gitattributes index d2f212e..175ebc8 100644 --- a/Go.gitattributes +++ b/Go.gitattributes @@ -1,10 +1,5 @@ -# Treat all files in this repo as binary, with no git magic updating +# Treat all Go files in this repo as binary, with no git magic updating # line endings. Windows users contributing to Go will need to use a # modern version of git and editors capable of LF line endings. -# -# We'll prevent accidental CRLF line endings from entering the repo -# via the git-review gofmt checks. -# -# See golang.org/issue/9281 -* -text +*.go -text