Skip to content

Commit 6fb0b9c

Browse files
authored
Merge pull request #131 from xdobro4/master
Add Project::getFile method
2 parents 44a6eb0 + bcc08b1 commit 6fb0b9c

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

lib/Gitlab/Model/Project.php

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -522,6 +522,17 @@ public function blob($sha, $filepath)
522522
return $this->api('repo')->blob($this->id, $sha, $filepath);
523523
}
524524

525+
/**
526+
* @param $sha
527+
* @param $filepath
528+
*
529+
* @return array
530+
*/
531+
public function getFile($sha, $filepath)
532+
{
533+
return $this->api('repo')->getFile($this->id, $filepath, $sha);
534+
}
535+
525536
/**
526537
* @param string $file_path
527538
* @param string $content

0 commit comments

Comments
 (0)