Skip to content

Commit 59b68f9

Browse files
committed
Clean up .gitignore
Globally ignoring all dot files and then making exceptions as needed to pull files back in again is very error prone. It's better to explicitly exclude everything we want to hide. This can be seen in the vendor directory, where we omitted a lot of files accidentally (we'll fix that in the next commit). None of these were important, so no harm done, but still. The reason why this came up is that I tried to look at the git history of one of the files in .github/workflows/ using lazygit's path filtering feature, but it didn't show up in the list of suggestions. It took me a while to realize that that's because this list doesn't show git-ignored files. Now, .github/workflows/ wasn't really git-ignored because it was brought back by an exclamation mark entry in the Exceptions section; but maybe the library we are using to get the files doesn't handle these properly or something (I didn't further research this).
1 parent 528367b commit 59b68f9

File tree

1 file changed

+4
-18
lines changed

1 file changed

+4
-18
lines changed

.gitignore

Lines changed: 4 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -3,35 +3,21 @@
33
# Logs
44
*.log
55

6-
# Hidden
7-
.*
8-
!.codespellrc
9-
106
# Notes
117
*.notes
128

139
# Tests
1410
test/repos/repo
1511
coverage.txt
1612

13+
# JetBrains stuff
14+
.idea/
15+
1716
# Binaries
17+
.bin/
1818
lazygit
1919
lazygit.exe
2020

21-
# Exceptions
22-
!.gitignore
23-
!.gitattributes
24-
!.goreleaser.yml
25-
!.golangci.yml
26-
!.circleci/
27-
!.github/
28-
!.vscode/
29-
!.devcontainer/
30-
31-
# these are for our integration tests
32-
!.git_keep
33-
!.gitmodules_keep
34-
3521
test/git_server/data
3622

3723
test/_results/**

0 commit comments

Comments
 (0)