mirror of
https://github.com/jesseduffield/lazygit.git
synced 2025-05-29 23:17:32 +02:00
Fix go generate on windows (#3706)
Fix two problems with running `go generate ./...` on Windows: - the command would error out with `panic: Default config starting comment not found` (depending on the setup of the local git client) - after running the command, all files would show up as modified in git, but without a diff. Staging the files would make them disappear again, except for those that actually had changes. Fix both of these by configuring git to check out the generated text files with Unix line endings.
This commit is contained in:
commit
f3c9443ec8
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/
|
||||
|
@ -1,11 +1,11 @@
|
||||
# Documentation Overview
|
||||
|
||||
* [Configuration](./Config.md).
|
||||
* [Custom Commands](./Custom_Command_Keybindings.md)
|
||||
* [Custom Pagers](./Custom_Pagers.md)
|
||||
* [Dev docs](./dev)
|
||||
* [Keybindings](./keybindings)
|
||||
* [Undo/Redo](./Undoing.md)
|
||||
* [Range Select](./Range_Select.md)
|
||||
* [Searching/Filtering](./Searching.md)
|
||||
* [Stacked Branches](./Stacked_Branches.md)
|
||||
# Documentation Overview
|
||||
|
||||
* [Configuration](./Config.md).
|
||||
* [Custom Commands](./Custom_Command_Keybindings.md)
|
||||
* [Custom Pagers](./Custom_Pagers.md)
|
||||
* [Dev docs](./dev)
|
||||
* [Keybindings](./keybindings)
|
||||
* [Undo/Redo](./Undoing.md)
|
||||
* [Range Select](./Range_Select.md)
|
||||
* [Searching/Filtering](./Searching.md)
|
||||
* [Stacked Branches](./Stacked_Branches.md)
|
||||
|
1
vendor/github.com/kevinburke/ssh_config/.gitattributes
generated
vendored
Normal file
1
vendor/github.com/kevinburke/ssh_config/.gitattributes
generated
vendored
Normal file
@ -0,0 +1 @@
|
||||
testdata/dos-lines eol=crlf
|
Loading…
x
Reference in New Issue
Block a user