} else {
$args[] = "master";
}
-
+ )
if ($limit !== null) {
if (is_int($limit)) {
//echo '<PRE>';print_r($args);echo '</PRE>';
$path = ltrim($path, '/');
- //print_R(array($args, '--' ,$path));
+
+
+
+ print_R(array($args, '--' ,$path));exit;
$fp = $this->git('log', $args, '--', $path);
$commits = array();
return array($parents, $kids);
}
- function git()
- {
- $args = func_get_args();
- $a = array(
- "--git-dir=$this->gitdir"
- );
-
-
-
- if ($this->gitdir != $this->repopath) {
- // print_r(array($this->gitdir , $this->repopath));
-
- //$a[] = "--work-tree=$this->repopath";
- }
- foreach ($args as $arg) {
- if (is_array($arg)) {
- $a = array_merge($a, $arg);
- continue;
- }
- $a[] = $arg;
- }
- if ($this->debug) {
- var_dump('git ' . join (' ' , $a));
- // die("oops");
- }
- //print_r($a);
- return MTrackSCM::run('git', 'read', $a);
- }
+ function git()
+ {
+ $args = func_get_args();
+ $a = array(
+ "--git-dir=$this->gitdir"
+ );
+
+
+
+ if ($this->gitdir != $this->repopath) {
+ // print_r(array($this->gitdir , $this->repopath));
+
+ //$a[] = "--work-tree=$this->repopath";
+ }
+ foreach ($args as $arg) {
+ if (is_array($arg)) {
+ $a = array_merge($a, $arg);
+ continue;
+ }
+ $a[] = $arg;
+ }
+ if ($this->debug) {
+ var_dump('git ' . join (' ' , $a));
+ // die("oops");
+ }
+ //print_r($a);
+ return MTrackSCM::run('git', 'read', $a);
+ }
function commitLogToEvent($str) {