Brad Fitzpatrick | b7a2b1e | 2014-12-12 14:49:08 -0800 | [diff] [blame] | 1 | # Treat all files in the Go repo as binary, with no git magic updating |
Dmitri Shuralyov | ee379d2 | 2020-06-04 00:35:09 -0400 | [diff] [blame] | 2 | # 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 Fitzpatrick | b7a2b1e | 2014-12-12 14:49:08 -0800 | [diff] [blame] | 10 | # |
| 11 | # We'll prevent accidental CRLF line endings from entering the repo |
Dmitri Shuralyov | ee379d2 | 2020-06-04 00:35:09 -0400 | [diff] [blame] | 12 | # via the git-codereview gofmt checks and tests. |
Brad Fitzpatrick | b7a2b1e | 2014-12-12 14:49:08 -0800 | [diff] [blame] | 13 | # |
Dmitri Shuralyov | ee379d2 | 2020-06-04 00:35:09 -0400 | [diff] [blame] | 14 | # See golang.org/issue/9281. |
Brad Fitzpatrick | b7a2b1e | 2014-12-12 14:49:08 -0800 | [diff] [blame] | 15 | |
| 16 | * -text |