Skip to content

Commit b7a2b1e

Browse files
committed
.gitattributes: prevent all magic line ending changes
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]>
1 parent 557a61d commit b7a2b1e

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

.gitattributes

+10-2
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,10 @@
1-
# see golang.org/issue/9281
2-
* eol=lf
1+
# Treat all files in the Go repo as binary, with no git magic updating
2+
# line endings. Windows users contributing to Go will need to use a
3+
# modern version of git and editors capable of LF line endings.
4+
#
5+
# We'll prevent accidental CRLF line endings from entering the repo
6+
# via the git-review gofmt checks.
7+
#
8+
# See golang.org/issue/9281
9+
10+
* -text

0 commit comments

Comments
 (0)