Skip to content
Browse files

.gitattributes: prevent all magic line ending changes

Fixes #9281

Change-Id: Id060e9cbad086c994ec74b240f5c61e971e5690b
Reviewed-by: Minux Ma <>
Reviewed-by: Brad Fitzpatrick <>
  • Loading branch information...
bradfitz committed Dec 12, 2014
1 parent 557a61d commit b7a2b1e980f3f8471f87cd9108d4461b88e39f76
Showing with 10 additions and 2 deletions.
  1. +10 −2 .gitattributes
@@ -1,2 +1,10 @@
# see
* 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

* -text

0 comments on commit b7a2b1e

Please sign in to comment.
You can’t perform that action at this time.