@@ -104,6 +104,7 @@ discard block |
||
| 104 | 104 | |
| 105 | 105 | /** |
| 106 | 106 | * Lists commit objects in reverse chronological order |
| 107 | + * @param integer $max_count |
|
| 107 | 108 | */ |
| 108 | 109 | public function getRevList($start = 'HEAD', $skip = 0, $max_count = null) { |
| 109 | 110 | $cmd = "rev-list "; |
@@ -125,6 +126,7 @@ discard block |
||
| 125 | 126 | |
| 126 | 127 | /** |
| 127 | 128 | * Obtiene la informacion detallada de un commit |
| 129 | + * @param string $repository |
|
| 128 | 130 | */ |
| 129 | 131 | public function getRevListHashDetail($hash = 'HEAD', $repository = null) { |
| 130 | 132 | $pattern = '/^(author|committer) ([^<]+) <([^>]*)> ([0-9]+) (.*)$/'; |
@@ -266,6 +268,7 @@ discard block |
||
| 266 | 268 | |
| 267 | 269 | /** |
| 268 | 270 | * Obtiene las referencias a partir de un hash en formato html |
| 271 | + * @param string $hash |
|
| 269 | 272 | */ |
| 270 | 273 | public function getNameRev($hash) { |
| 271 | 274 | $output = $this->run_git("show-ref -d | grep $hash"); |
@@ -2,7 +2,6 @@ |
||
| 2 | 2 | |
| 3 | 3 | namespace markmarco16\git\controllers; |
| 4 | 4 | |
| 5 | -use Yii; |
|
| 6 | 5 | use yii\web\Controller; |
| 7 | 6 | use yii\data\ArrayDataProvider; |
| 8 | 7 | use markmarco16\git\components\Repository; |
@@ -1,6 +1,5 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | -use yii\helpers\Html; |
|
| 4 | 3 | use yii\grid\GridView; |
| 5 | 4 | ?> |
| 6 | 5 | |