mirror of
https://github.com/jesseduffield/lazygit.git
synced 2025-05-10 11:55:48 +02: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
|
# Exceptions
|
||||||
!.gitignore
|
!.gitignore
|
||||||
|
!.gitattributes
|
||||||
!.goreleaser.yml
|
!.goreleaser.yml
|
||||||
!.golangci.yml
|
!.golangci.yml
|
||||||
!.circleci/
|
!.circleci/
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue