* fills up repo, files, log, commits by running log on the STDIN
*/
- function __construct(MTrack_Repo $repo, $hooks)
+ function __construct($repo)
{
- $this->repo = $repo;
+ $this->repo = $repo->impl();
while (($line = fgets(STDIN)) !== false) {
echo "got: $line\n";
list($old, $new, $ref) = explode(' ', trim($line), 3);
$this->commits[] = $new;
- $fp = $this->repo->git('log', '--no-color', '--name-status',
+ $fp = $this->repo->git(
+ 'log', '--no-color', '--name-status',
'--date=rfc', $ref, "$old..$new");
} while (($line = fgets($fp)) !== false);
}
+ print_r($this);exit;
}