Skip to content

Commit

Permalink
.gitattributes: prevent all magic line ending changes
Browse files Browse the repository at this point in the history
Fixes golang#9281

Change-Id: Id060e9cbad086c994ec74b240f5c61e971e5690b
Reviewed-on: https://go-review.googlesource.com/1490
Reviewed-by: Minux Ma <[email protected]>
Reviewed-by: Brad Fitzpatrick <[email protected]>
  • Loading branch information
bradfitz committed Dec 12, 2014
1 parent 557a61d commit b7a2b1e
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit b7a2b1e

Please sign in to comment.