Skip to content

Commit 2230089

Browse files
authored
Merge pull request #5381 from Benehiko/lf-exclude-binary
fix: gitattributes enforcing line endings
2 parents 6b74160 + 4a6ab2b commit 2230089

1 file changed

Lines changed: 11 additions & 2 deletions

File tree

.gitattributes

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,14 @@
1-
* text=auto eol=lf
1+
* text=auto
2+
23
Dockerfile* linguist-language=Dockerfile
34
vendor.mod linguist-language=Go-Module
45
vendor.sum linguist-language=Go-Checksums
5-
*.bat text eol=crlf
6+
7+
*.go -text diff=golang
8+
9+
# scripts directory contains shell scripts
10+
# without extensions, so we need to force
11+
scripts/** text=auto eol=lf
12+
13+
# shell scripts should always have LF
14+
*.sh text eol=lf

0 commit comments

Comments
 (0)