Method: Gitlab::Client::RepositoryFiles#get_file
- Defined in:
- lib/gitlab/client/repository_files.rb
permalink #get_file(project, file_path, ref) ⇒ Gitlab::ObjectifiedHash
Gets a repository file.
53 54 55 56 57 |
# File 'lib/gitlab/client/repository_files.rb', line 53 def get_file(project, file_path, ref) get("/projects/#{url_encode project}/repository/files/#{url_encode file_path}", query: { ref: ref }) end |