]> source.dussan.org Git - gitignore.git/commitdiff
Update CakePHP.gitignore 1764/head
authorPatrício dos Santos <eu@patricio.me>
Fri, 20 Nov 2015 17:14:33 +0000 (18:14 +0100)
committerPatrício dos Santos <eu@patricio.me>
Fri, 20 Nov 2015 17:14:33 +0000 (18:14 +0100)
Ignore all tmp and log files but preserve the directory structure

CakePHP.gitignore

index 55a665e46f1327da88c6d2603a07b6a6250ca7a1..c6597e4eabf8c5e9e6a6388ca786c7f507ddec00 100644 (file)
@@ -2,8 +2,20 @@
 
 /vendor/*
 /config/app.php
-/tmp/*
+
+/tmp/cache/models/*
+!/tmp/cache/models/empty
+/tmp/cache/persistent/*
+!/tmp/cache/persistent/empty
+/tmp/cache/views/*
+!/tmp/cache/views/empty
+/tmp/sessions/*
+!/tmp/sessions/empty
+/tmp/tests/*
+!/tmp/tests/empty
+
 /logs/*
+!/logs/empty
 
 # CakePHP 2