From 9afb7711dc3f3c99dbe2fe59449403b34d32e26a Mon Sep 17 00:00:00 2001 From: Alex Brainman Date: Tue, 23 Dec 2014 17:13:51 +1100 Subject: [PATCH] tools: copying .gitattributes to all subrepositories (fixes windows build) Fixes #9281 Change-Id: I42ef7105b2a5a99452d804db31eea57a8d6d9d01 Reviewed-on: https://go-review.googlesource.com/2071 Reviewed-by: Minux Ma Reviewed-by: Brad Fitzpatrick --- .gitattributes | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 .gitattributes diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000000..d2f212e5da --- /dev/null +++ b/.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