mirror of
https://github.com/jesseduffield/lazygit.git
synced 2025-03-13 23:51:20 +03:00
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:
parent
94a1c27916
commit
61313e5dfa
2 changed files with 4 additions and 0 deletions
3
.gitattributes
vendored
Normal file
3
.gitattributes
vendored
Normal file
|
@ -0,0 +1,3 @@
|
|||
*.go text
|
||||
*.md text eol=lf
|
||||
*.json text eol=lf
|
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -19,6 +19,7 @@ lazygit.exe
|
|||
|
||||
# Exceptions
|
||||
!.gitignore
|
||||
!.gitattributes
|
||||
!.goreleaser.yml
|
||||
!.golangci.yml
|
||||
!.circleci/
|
||||
|
|
Loading…
Reference in a new issue