module Gitlab::Client::RepositoryFiles
def get_file(project, file_path, ref)
-
(Gitlab::ObjectifiedHash)
-
Parameters:
-
ref
(String
) -- The name of branch, tag or commit. -
file_path
(String
) -- The full path of the file. -
project
(Integer, String
) -- The ID or name of a project.
def get_file(project, file_path, ref) get("/projects/#{url_encode project}/repository/files/#{url_encode file_path}", query: { ref: ref }) end