blob: cabbb1732c418125f9c773ce7a28ba34f2708554 [file] [log] [blame]
Brad Fitzpatrickb7a2b1e2014-12-12 14:49:08 -08001# Treat all files in the Go repo as binary, with no git magic updating
Dmitri Shuralyovee379d22020-06-04 00:35:09 -04002# line endings. This produces predictable results in different environments.
3#
4# Windows users contributing to Go will need to use a modern version
5# of git and editors capable of LF line endings.
6#
7# Windows .bat files are known to have multiple bugs when run with LF
8# endings, and so they are checked in with CRLF endings, with a test
9# in test/winbatch.go to catch problems. (See golang.org/issue/37791.)
Brad Fitzpatrickb7a2b1e2014-12-12 14:49:08 -080010#
11# We'll prevent accidental CRLF line endings from entering the repo
Dmitri Shuralyovee379d22020-06-04 00:35:09 -040012# via the git-codereview gofmt checks and tests.
Brad Fitzpatrickb7a2b1e2014-12-12 14:49:08 -080013#
Dmitri Shuralyovee379d22020-06-04 00:35:09 -040014# See golang.org/issue/9281.
Brad Fitzpatrickb7a2b1e2014-12-12 14:49:08 -080015
16* -text