Skip to content

Commit abd8736

Browse files
author
vieilles
committed
Get file API
1 parent 3f0e7df commit abd8736

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

lib/Gitlab/Api/Repositories.php

+8
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,14 @@ public function blob($project_id, $sha, $filepath)
6161
));
6262
}
6363

64+
public function getFile($project_id, $file_path, $ref)
65+
{
66+
return $this->get('projects/'.urlencode($project_id).'/repository/files', array(
67+
'file_path' => $file_path,
68+
'ref' => $ref
69+
));
70+
}
71+
6472
public function createFile($project_id, $file_path, $content, $branch_name, $commit_message)
6573
{
6674
return $this->post('projects/'.urlencode($project_id).'/repository/files', array(

0 commit comments

Comments
 (0)