summarylogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.gitignore25
1 files changed, 21 insertions, 4 deletions
diff --git a/.gitignore b/.gitignore
index 6fa0202fa76a..61e881e800c2 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,4 +1,21 @@
-pkg/
-src/
-*.xz
-*.zip
+# ignore everything ...
+*
+
+# ... except itself
+!.gitignore
+
+# ... except changes in package
+!PKGBUILD
+!.SRCINFO
+
+# ... except possible source files
+!*.patch
+!*.diff
+!*.desktop
+!*.png
+!*.sh
+!LICENSE
+
+# ... except files from PKGBUILD fields
+!*.changelog
+!*.install