]> Cypherpunks.ru repositories - gostls13.git/commitdiff
.gitattributes: prevent all magic line ending changes
authorBrad Fitzpatrick <bradfitz@golang.org>
Fri, 12 Dec 2014 22:49:08 +0000 (14:49 -0800)
committerBrad Fitzpatrick <bradfitz@golang.org>
Fri, 12 Dec 2014 23:14:54 +0000 (23:14 +0000)
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>
.gitattributes

index 97da3389fb24794e9fcc38a0954020de49987558..07953cae39ba75dbf550a5ce013974ca1e829206 100644 (file)
@@ -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