From dce97917c3cb22a220d740a6f3143bf4f2cdedaa Mon Sep 17 00:00:00 2001 From: Christophe Laffont Date: Tue, 11 Mar 2014 09:59:07 +0100 Subject: [PATCH] Improve gitignore rules for modules and templates --- .gitignore | 18 +++++++++++++++--- 1 file changed, 15 insertions(+), 3 deletions(-) diff --git a/.gitignore b/.gitignore index a6845dd3e..65ccbeaa3 100755 --- a/.gitignore +++ b/.gitignore @@ -25,7 +25,19 @@ xhprof/ phpunit.phar .DS_Store phpmyadmin -templates/default-esi -local/modules/TemplateEsiModule composer.phar -web/.htaccess +web/. + +# Ignore everything in the "modules" directory, except the "default modules" +local/modules/* +!local/modules/Cheque/ +!local/modules/Front/ +!local/modules/TheliaDebugBar/ +!local/modules/Tinymce/ + +# Ignore everything in the "templates" directory, except the "default template" +templates/* +!templates/backOffice/ +!templates/email/ +!templates/frontOffice/ +!templates/pdf/