]> Cypherpunks.ru repositories - gostls13.git/blobdiff - .gitattributes
cmd/compile/internal/inline: score call sites exposed by inlines
[gostls13.git] / .gitattributes
index 97da3389fb24794e9fcc38a0954020de49987558..cabbb1732c418125f9c773ce7a28ba34f2708554 100644 (file)
@@ -1,2 +1,16 @@
-# see golang.org/issue/9281
-* eol=lf
+# Treat all files in the Go repo as binary, with no git magic updating
+# line endings. This produces predictable results in different environments.
+#
+# Windows users contributing to Go will need to use a modern version
+# of git and editors capable of LF line endings.
+#
+# Windows .bat files are known to have multiple bugs when run with LF
+# endings, and so they are checked in with CRLF endings, with a test
+# in test/winbatch.go to catch problems. (See golang.org/issue/37791.)
+#
+# We'll prevent accidental CRLF line endings from entering the repo
+# via the git-codereview gofmt checks and tests.
+#
+# See golang.org/issue/9281.
+
+* -text