Skip to content

Commit 81bef16

Browse files
author
Tim Helfensdöerfer
committed
Added git log command
1 parent b5e09b3 commit 81bef16

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

Git.php

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -487,6 +487,13 @@ public function pull($remote, $branch) {
487487
return $this->run("pull $remote $branch");
488488
}
489489

490+
public function log($format = null) {
491+
if ($format === null)
492+
return $this->run('log');
493+
else
494+
return $this->run('log --pretty=format:"' . $format . '"');
495+
}
496+
490497
/**
491498
* Sets the project description.
492499
*

0 commit comments

Comments
 (0)