about summary refs log tree commit diff stats
path: root/.gitignore
diff options
context:
space:
mode:
authorAlan Pearce2024-05-02 13:55:48 +0200
committerAlan Pearce2024-05-02 22:40:38 +0200
commit7ad48953a4d9470d2f4fe89343c0b09bff410c58 (patch)
tree9aa74fcb05f51df6b56d1a6025217dd3c5075a4b /.gitignore
downloadsearchix-7ad48953a4d9470d2f4fe89343c0b09bff410c58.tar.lz
searchix-7ad48953a4d9470d2f4fe89343c0b09bff410c58.tar.zst
searchix-7ad48953a4d9470d2f4fe89343c0b09bff410c58.zip
chore: initial commit
Diffstat (limited to '.gitignore')
-rw-r--r--.gitignore29
1 files changed, 29 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..2368a38
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,29 @@
+# Allowlisting gitignore template for GO projects prevents us
+# from adding various unwanted local files, such as generated
+# files, developer configurations or IDE-specific files etc.
+#
+# Recommended: Go.AllowList.gitignore
+
+# Ignore everything
+*
+
+# But not these files...
+!/.gitignore
+!/.editorconfig
+!/.envrc.sample
+
+!/README.md
+!/LICENSE
+!/justfile
+
+!/nix
+!*.nix
+
+!/.golangci.yaml
+!/go.sum
+!/go.mod
+!/gomod2nix.toml
+!*.go
+
+# ...even if they are in subdirectories
+!*/