summarylogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.gitignore28
1 files changed, 22 insertions, 6 deletions
diff --git a/.gitignore b/.gitignore
index 1859cd91cb36..ddfe915b4f92 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,6 +1,22 @@
-pkg/
-src/
-*.gz
-*.zst
-vale-*_LICENSE
-vale-*_README.md
+# ignore everything ...
+*
+
+# ... except itself
+!.gitignore
+
+# ... except changes in package
+!PKGBUILD
+!.SRCINFO
+
+# ... except possible source files
+!*.patch
+!*.diff
+!*.desktop
+!*.png
+!LICENSE
+!*.service
+!*.conf
+
+# ... except files from PKGBUILD fields
+!*.changelog
+!*.install