{
var $repo;
-
+ var $branch = "";
var $files = array();
var $log = array();
var $commits = array();
while (($line = fgets(STDIN)) !== false) {
echo "got: $line\n";
list($old, $new, $ref) = explode(' ', trim($line), 3);
+ $this->branch = $ref;
$this->commits[] = $new;
+ if (preg_match('/^0+$/',$old)) {
+ continue; // it's a new branch - ignore..
+ }
+
$fp = $this->repo->git(
'log', '--no-color', '--name-status',
'--date=rfc', "$old..$new"); //$ref, used to be in here?? - but it breaks stuff...