Skip to content

Instantly share code, notes, and snippets.

View nickw108's full-sized avatar

Nick Weisser nickw108

View GitHub Profile
@nickw108
nickw108 / Magento 1.4+ .gitignore (core excluded)
Created November 11, 2010 13:06 — forked from nesh/gist:364586
This version also ignores all Magento core files
# put it into magento install dir
app/code/core/
app/code/community/Phoenix/Moneybookers
app/design/adminhtml/default/default/
app/design/frontend/base/default/
app/design/frontend/default/default/
app/design/frontend/default/blank/
app/design/frontend/default/iphone/
<?php
$website = 'domain.com';
$path = '/path/to/htdocs';
$email = '[email protected]';
$git_status = shell_exec('git --git-dir=' . $path . '/.git --work-tree=' . $path . ' status');
$git_log = file_exists($path . '/.git-monitoring.log') ? file_get_contents($path . '/.git-monitoring.log') : '';
if (!preg_match('/working directory clean/ism', $git_status) && $git_log != $git_status) {
file_put_contents($path . '/.git-monitoring.log', $git_status);