Maintenance: Standardize .gitignore to whitelist strategy

This commit is contained in:
Yakov Till 2025-12-17 22:57:16 +01:00
parent 9ec97a8d2a
commit 4c4ce00df2

38
.gitignore vendored
View file

@ -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