From 4c4ce00df22ce1bf56d226676789e1f52afbc7d9 Mon Sep 17 00:00:00 2001 From: Yakov Till Date: Wed, 17 Dec 2025 22:57:16 +0100 Subject: [PATCH] Maintenance: Standardize .gitignore to whitelist strategy --- .gitignore | 38 ++++++++++++++++++++++---------------- 1 file changed, 22 insertions(+), 16 deletions(-) diff --git a/.gitignore b/.gitignore index 2749c0b621324..c6f8742c10838 100644 --- a/.gitignore +++ b/.gitignore @@ -1,18 +1,24 @@ -# makepkg build artifacts -pkg/ -src/ -*.pkg.tar.zst -*.pkg.tar.zst.sig -*.tgz -*.tar.xz -*.tar.gz +# Ignore everything by default +* -# Common build files -*.log -*.swp -*.swo -*~ +# Whitelist the essentials +!.gitignore +!.SRCINFO +!PKGBUILD -# IDE files -.vscode/ -.idea/ +# Whitelist auxiliary files +!*.install +!*.patch +!*.diff +!*.service +!*.desktop +!*.conf +!*.png +!*.svg +!*.sysusers +!*.tmpfiles +!LICENSE +!README.md +!CHANGELOG.md +!*.ini +!*.txt