From 56adb847b85d23dde1dbe031bf0b6bf0e13cff23 Mon Sep 17 00:00:00 2001 From: Yakov Till Date: Wed, 17 Dec 2025 22:57:17 +0100 Subject: [PATCH] Maintenance: Standardize .gitignore to whitelist strategy --- .gitignore | 31 ++++++++++++++++++++++++------- 1 file changed, 24 insertions(+), 7 deletions(-) diff --git a/.gitignore b/.gitignore index 602f17de4707..c6f8742c1083 100644 --- a/.gitignore +++ b/.gitignore @@ -1,7 +1,24 @@ -/src -/pkg -/npm-cache -*.tar.gz -*.pkg.tar.* -*.tgz -*.code-workspace +# Ignore everything by default +* + +# Whitelist the essentials +!.gitignore +!.SRCINFO +!PKGBUILD + +# Whitelist auxiliary files +!*.install +!*.patch +!*.diff +!*.service +!*.desktop +!*.conf +!*.png +!*.svg +!*.sysusers +!*.tmpfiles +!LICENSE +!README.md +!CHANGELOG.md +!*.ini +!*.txt