Move command definitions into exe class file
Move command definitions into exe class file

--- a/include/defs.commands.php
+++ /dev/null
@@ -1,21 +1,1 @@
-<?php
-/*
- *  defs.commands.php
- *  gitphp: A PHP git repository browser
- *  Component: Definitions - commands
- *
- *  Copyright (C) 2008 Christopher Han <xiphux@gmail.com>
- */
 
-define('GIT_CAT_FILE','cat-file');
-define('GIT_DIFF_TREE','diff-tree');
-define('GIT_LS_TREE','ls-tree');
-define('GIT_REV_LIST','rev-list');
-define('GIT_REV_PARSE','rev-parse');
-define('GIT_SHOW_REF','show-ref');
-define('GIT_ARCHIVE','archive');
-define('GIT_GREP','grep');
-define('GIT_BLAME','blame');
-
-?>
-

--- a/include/git/Commit.class.php
+++ b/include/git/Commit.class.php
@@ -10,7 +10,7 @@
  * @subpackage Git
  */
 
-require_once(GITPHP_INCLUDEDIR . 'defs.commands.php');
+require_once(GITPHP_GITOBJECTDIR . 'GitExe.class.php');
 require_once(GITPHP_GITOBJECTDIR . 'GitObject.class.php');
 require_once(GITPHP_GITOBJECTDIR . 'Tree.class.php');
 require_once(GITPHP_GITOBJECTDIR . 'TreeDiff.class.php');

--- a/include/git/GitExe.class.php
+++ b/include/git/GitExe.class.php
@@ -9,6 +9,16 @@
  * @package GitPHP
  * @subpackage Git
  */
+
+define('GIT_CAT_FILE','cat-file');
+define('GIT_DIFF_TREE','diff-tree');
+define('GIT_LS_TREE','ls-tree');
+define('GIT_REV_LIST','rev-list');
+define('GIT_REV_PARSE','rev-parse');
+define('GIT_SHOW_REF','show-ref');
+define('GIT_ARCHIVE','archive');
+define('GIT_GREP','grep');
+define('GIT_BLAME','blame');
 
 /**
  * Git Executable class

--- a/include/git/Project.class.php
+++ b/include/git/Project.class.php
@@ -10,7 +10,6 @@
  * @subpackage Git
  */
 
-require_once(GITPHP_INCLUDEDIR . 'defs.commands.php');
 require_once(GITPHP_GITOBJECTDIR . 'GitExe.class.php');
 require_once(GITPHP_GITOBJECTDIR . 'Commit.class.php');
 require_once(GITPHP_GITOBJECTDIR . 'Head.class.php');

comments