瀏覽代碼

Trivial: update git attributes for Makefile (#638)

* Update .gitattributes for Go files

- Mark go source files as text, with LF line ending.
- Set git diff language mode for `*.go` files to `golang`

* Add .gitattributes entry for Makefiles
Julio López 4 年之前
父節點
當前提交
6b0b79afe1
共有 1 個文件被更改,包括 4 次插入2 次删除
  1. 4 2
      .gitattributes

+ 4 - 2
.gitattributes

@@ -1,2 +1,4 @@
-*.go	whitespace=trailing-space,space-before-tab,indent-with-non-tab
-go.mod	whitespace=trailing-space,space-before-tab,indent-with-non-tab
+*.go	text eol=lf whitespace=trailing-space,space-before-tab,indent-with-non-tab diff=golang
+go.mod	text eol=lf whitespace=trailing-space,space-before-tab,indent-with-non-tab
+go.sum	text eol=lf whitespace=trailing-space,space-before-tab,indent-with-non-tab
+Makefile text eol=lf whitespace=trailing-space,space-before-tab,indent-with-non-tab