Spell out bazel directories in .gitignore (#7688)

* Spell out bazel directories in .gitignore

With the old `/bazel-*` pattern in there, `rg` also ignores files like
`bazel-haskell-deps.bzl`, which is quite inconvenient.

I obtained the list of what should be hidden by uncommenting the
`/bazel-*` line and adding evering `git status` showed as new files.
Thus, the list is hopefully complete.

We have a similar issue with `/compatibility/bazel-haskell-deps.bzl`.
Since I could figure out what exactly we want to ignore there, I just
added an un-ignore for that single file.

CHANGELOG_BEGIN
CHANGELOG_END

* Go with the unignore approach everywhere

CHANGELOG_BEGIN
CHANGELOG_END
This commit is contained in:
Martin Huschenbett 2020-10-15 10:25:57 +02:00 committed by GitHub
parent 40335c5ccd
commit 840fabbea2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

3
.gitignore vendored
View File

@ -17,7 +17,10 @@ target
# Bazel
.bazel-cache
/bazel-*
!/bazel-haskell-deps.bzl
!/bazel-java-deps.bzl
/compatibility/bazel-*
!/compatibility/bazel-haskell-deps.bzl
/compatibility/.bazelrc
/compatibility/head_sdk/
.bazelrc.local