diff options
author | Brad Fitzpatrick <bradfitz@golang.org> | 2014-12-12 14:49:08 -0800 |
---|---|---|
committer | Brad Fitzpatrick <bradfitz@golang.org> | 2014-12-12 23:14:54 +0000 |
commit | b7a2b1e980f3f8471f87cd9108d4461b88e39f76 (patch) | |
tree | 7e497bded0ade07996e361cd0dfcb83b2068157c /.gitattributes | |
parent | 557a61d270f101c0983e6aca9b271cc854526d28 (diff) | |
download | go-b7a2b1e980f3f8471f87cd9108d4461b88e39f76.tar.gz go-b7a2b1e980f3f8471f87cd9108d4461b88e39f76.zip |
.gitattributes: prevent all magic line ending changes
Fixes #9281
Change-Id: Id060e9cbad086c994ec74b240f5c61e971e5690b
Reviewed-on: https://go-review.googlesource.com/1490
Reviewed-by: Minux Ma <minux@golang.org>
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
Diffstat (limited to '.gitattributes')
-rw-r--r-- | .gitattributes | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/.gitattributes b/.gitattributes index 97da3389fb..07953cae39 100644 --- a/.gitattributes +++ b/.gitattributes @@ -1,2 +1,10 @@ -# see golang.org/issue/9281 -* eol=lf +# Treat all files in the Go 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 |