projects
/
web.mtrack
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5d87d02
)
MTrack/CommitChecker.php
author
Alan Knowles
<alan@akbkhome.com>
Sat, 25 Jun 2011 15:23:46 +0000
(23:23 +0800)
committer
Alan Knowles
<alan@akbkhome.com>
Sat, 25 Jun 2011 15:23:46 +0000
(23:23 +0800)
MTrack/CommitChecker.php
patch
|
blob
|
history
diff --git
a/MTrack/CommitChecker.php
b/MTrack/CommitChecker.php
index
f7b60f2
..
082c8ef
100644
(file)
--- a/
MTrack/CommitChecker.php
+++ b/
MTrack/CommitChecker.php
@@
-11,9
+11,12
@@
require_once 'MTrack/Interface/CommitHookBridge2.php';
class MTrack_CommitChecker {
+
static $fileChecks = array(
'php' => 'checkPHP',
);
+
+
static $listeners = array();
static function addCheck($name)
@@
-111,6
+114,8
@@
class MTrack_CommitChecker {
function preCommit(IMTrackCommitHookBridge $bridge)
{
+ die("NOT SUPPORTED YET!");
+
//echo "Pre-commit";
$this->bridge = $bridge;
MTrackACL::requireAllRights("repo:" . $this->repo->id, 'commit');