Skip to content

Commit 79f6953

Browse files
authored
Clean up the .gitignore file (#4706)
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. 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).
2 parents 528367b + f8865c4 commit 79f6953

File tree

22 files changed

+256
-18
lines changed

22 files changed

+256
-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/**
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
version = 1
2+
3+
test_patterns = [
4+
"*_test.go"
5+
]
6+
7+
[[analyzers]]
8+
name = "go"
9+
enabled = true
10+
11+
[analyzers.meta]
12+
import_path = "dario.cat/mergo"

vendor/dario.cat/mergo/.travis.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
language: go
2+
arch:
3+
- amd64
4+
- ppc64le
5+
install:
6+
- go get -t
7+
- go get golang.org/x/tools/cmd/cover
8+
- go get github.com/mattn/goveralls
9+
script:
10+
- go test -race -v ./...
11+
after_script:
12+
- $HOME/gopath/bin/goveralls -service=travis-ci -repotoken $COVERALLS_TOKEN

vendor/github.com/atotto/clipboard/.travis.yml

Lines changed: 22 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

vendor/github.com/buger/jsonparser/.travis.yml

Lines changed: 11 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

vendor/github.com/cloudfoundry/jibber_jabber/.travis.yml

Lines changed: 11 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

vendor/github.com/gdamore/encoding/.appveyor.yml

Lines changed: 13 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

vendor/github.com/gdamore/tcell/v2/.appveyor.yml

Lines changed: 13 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

vendor/github.com/gdamore/tcell/v2/.travis.yml

Lines changed: 18 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

vendor/github.com/go-errors/errors/.travis.yml

Lines changed: 7 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)