From 77fc57466958bc89f4ed2bae5ad40543c5f9e2d3 Mon Sep 17 00:00:00 2001 From: Adrian Perez de Castro Date: Fri, 9 Aug 2019 15:24:20 +0300 Subject: [PATCH] Invert .gitignore matches Instead of matching files to ignore, ignore all and then exclude the few files which need to be tracked in version control. --- .gitignore | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/.gitignore b/.gitignore index 187d506..218620e 100644 --- a/.gitignore +++ b/.gitignore @@ -1,6 +1,4 @@ -/wlroots-git/ -/pkg/ -/src/ -/*.log -/*.pkg.tar -/*.pkg.tar.* +* +!/PKGBUILD +!/.SRCINFO +!/.gitignore