From 61313e5dfa69747abc1d11b4e3b4768f9485dbac Mon Sep 17 00:00:00 2001 From: stk <stk@ableton.com> Date: Sun, 30 Jun 2024 11:15:19 +0200 Subject: [PATCH] Add .gitattributes file This tells git to checkout all .md and .json files with Unix line feeds, even on Windows. This shouldn't be a problem for working with these files on Windows, as all modern text editors and IDEs should be capable of editing Unix files transparently; but it makes it possible to run `go generate ./...` on Windows, which assumes Unix line feeds in a few places. --- .gitattributes | 3 +++ .gitignore | 1 + 2 files changed, 4 insertions(+) create mode 100644 .gitattributes diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 000000000..8143bb75f --- /dev/null +++ b/.gitattributes @@ -0,0 +1,3 @@ +*.go text +*.md text eol=lf +*.json text eol=lf diff --git a/.gitignore b/.gitignore index 2fc9940dc..09340a6c9 100644 --- a/.gitignore +++ b/.gitignore @@ -19,6 +19,7 @@ lazygit.exe # Exceptions !.gitignore +!.gitattributes !.goreleaser.yml !.golangci.yml !.circleci/