1 | <?php |
||
33 | class LogCommand extends BaseCommand |
||
34 | { |
||
35 | const GIT_LOG = 'log'; |
||
36 | |||
37 | /** |
||
38 | * constructor |
||
39 | * |
||
40 | * @param \GitElephant\Repository $repo The repository object this command |
||
41 | * will interact with |
||
42 | */ |
||
43 | 20 | public function __construct(Repository $repo = null) |
|
47 | |||
48 | /** |
||
49 | * Build an object log command |
||
50 | * |
||
51 | * @param \GitElephant\Objects\Object $obj the Object to get the log for |
||
52 | * @param \GitElephant\Objects\Branch|string|null $branch the branch to consider |
||
53 | * @param int|null $limit limit to n entries |
||
54 | * @param int|null $offset skip n entries |
||
55 | * |
||
56 | * @throws \RuntimeException |
||
57 | * @return string |
||
58 | */ |
||
59 | 2 | public function showObjectLog(Object $obj, $branch = null, $limit = null, $offset = null) |
|
72 | |||
73 | /** |
||
74 | * Build a generic log command |
||
75 | * |
||
76 | * @param \GitElephant\Objects\TreeishInterface|string $ref the reference to build the log for |
||
77 | * @param string|null $path the physical path to the tree relative to the |
||
78 | * repository root |
||
79 | * @param int|null $limit limit to n entries |
||
80 | * @param int|null $offset skip n entries |
||
81 | * @param boolean|false $firstParent skip commits brought in to branch by a merge |
||
82 | * |
||
83 | * @throws \RuntimeException |
||
84 | * @return string |
||
85 | */ |
||
86 | 20 | public function showLog($ref, $path = null, $limit = null, $offset = null, $firstParent = false) |
|
121 | } |
||
122 |