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.
This commit is contained in:
stk 2024-06-30 11:15:19 +02:00 committed by Stefan Haller
parent 94a1c27916
commit 61313e5dfa
2 changed files with 4 additions and 0 deletions

3
.gitattributes vendored Normal file
View File

@ -0,0 +1,3 @@
*.go text
*.md text eol=lf
*.json text eol=lf

1
.gitignore vendored
View File

@ -19,6 +19,7 @@ lazygit.exe
# Exceptions
!.gitignore
!.gitattributes
!.goreleaser.yml
!.golangci.yml
!.circleci/