1
0
mirror of https://github.com/jesseduffield/lazygit.git synced 2025-05-31 23:19:40 +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:
Stefan Haller 2024-07-01 08:39:39 +02:00 committed by GitHub
commit f3c9443ec8
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 16 additions and 11 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 # Exceptions
!.gitignore !.gitignore
!.gitattributes
!.goreleaser.yml !.goreleaser.yml
!.golangci.yml !.golangci.yml
!.circleci/ !.circleci/

View File

@ -1,11 +1,11 @@
# Documentation Overview # Documentation Overview
* [Configuration](./Config.md). * [Configuration](./Config.md).
* [Custom Commands](./Custom_Command_Keybindings.md) * [Custom Commands](./Custom_Command_Keybindings.md)
* [Custom Pagers](./Custom_Pagers.md) * [Custom Pagers](./Custom_Pagers.md)
* [Dev docs](./dev) * [Dev docs](./dev)
* [Keybindings](./keybindings) * [Keybindings](./keybindings)
* [Undo/Redo](./Undoing.md) * [Undo/Redo](./Undoing.md)
* [Range Select](./Range_Select.md) * [Range Select](./Range_Select.md)
* [Searching/Filtering](./Searching.md) * [Searching/Filtering](./Searching.md)
* [Stacked Branches](./Stacked_Branches.md) * [Stacked Branches](./Stacked_Branches.md)

View File

@ -0,0 +1 @@
testdata/dos-lines eol=crlf