From a7e06b28aeda4da71b089b9d6f10b8f2c42874ff Mon Sep 17 00:00:00 2001 From: Michal Vasilek Date: Sat, 31 Dec 2022 17:23:01 +0100 Subject: [PATCH] .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. --- .gitignore | 18 +++++++++++------- 1 file changed, 11 insertions(+), 7 deletions(-) diff --git a/.gitignore b/.gitignore index 958f644eee94..b250a982502a 100644 --- a/.gitignore +++ b/.gitignore @@ -1,14 +1,18 @@ *.swo *.swp *~ -\#*# -*.o -masterdir* -hostdir* -masterdir*/ -hostdir*/ + +# exclude everything in root except files and directories from void-packages +/* +!/srcpkgs +!/common +!/CONTRIBUTING.md +!/Manual.md +!/README.md +!/COPYING +!/xbps-src +!/etc etc/conf etc/conf.* etc/virtual etc/xbps.d/custom -.xbps-checkvers*.plist