.gitignore: explicitly allow paths

This prevents git from picking up masterdirs that don't happen to be
named the usual way and more custom and temporary files that should not
be tracked by git.
This commit is contained in:
Michal Vasilek 2022-12-31 17:23:01 +01:00
parent 781b139dc7
commit e1c9bb2ff0
1 changed files with 11 additions and 6 deletions

17
.gitignore vendored
View File

@ -2,13 +2,18 @@
*.swp
*~
\#*#
*.o
masterdir*
hostdir*
masterdir*/
hostdir*/
# exclude everything in root except files and directories from void-packages
/*
!/CONTRIBUTING.md
!/COPYING
!/Manual.md
!/README.md
!/common
!/etc
!/srcpkgs
!/xbps-src
etc/conf
etc/conf.*
etc/virtual
etc/xbps.d/custom
.xbps-checkvers*.plist