-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathlog.php
More file actions
22 lines (17 loc) · 667 Bytes
/
Copy pathlog.php
File metadata and controls
22 lines (17 loc) · 667 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
<?php
require __DIR__ . '/../vendor/autoload.php';
require __DIR__ . '/helper-functions.php';
use Simplercode\GAL\Command\LogCommand;
use Simplercode\GAL\Command\Log\Format;
use Simplercode\GAL\Command\Log\Collector\DefaultLogCollector;
use Simplercode\GAL\Processor;
$repoPath = validateRepoPathAndShowMessage($argv);
$isBare = checkIfBareAndShowMessage($repoPath);
$processor = new Processor($repoPath, $isBare);
$collector = new DefaultLogCollector();
$logCommand = new LogCommand($processor, $collector);
$result = $logCommand->execute(array(
'-5',
'--pretty=tformat:'.Format::CS.Format::GIT_EOL.LogCommand::getDefaultFormat(),
));
print_r($result);