Commit 754a0989 authored by 0xmohit's avatar 0xmohit Committed by Sander van Harmelen

fix godoc for RepositoriesService.RawFileContent (#527)

* fix godoc for RepositoriesService.RawFileContent

* rename RepositoriesService.RawFileContent to RepositoriesService.GetBlob
parent f3009e27
......@@ -81,11 +81,12 @@ func (s *RepositoriesService) ListTree(pid interface{}, opt *ListTreeOptions, op
return t, resp, err
}
// RawFileContent gets the raw file contents for a file by commit SHA and path
// GetBlob gets information about blob in repository like size and content.
// Note that blob content is Base64 encoded.
//
// GitLab API docs:
// https://docs.gitlab.com/ce/api/repositories.html#raw-file-content
func (s *RepositoriesService) RawFileContent(pid interface{}, sha string, options ...OptionFunc) ([]byte, *Response, error) {
// https://docs.gitlab.com/ce/api/repositories.html#get-a-blob-from-repository
func (s *RepositoriesService) GetBlob(pid interface{}, sha string, options ...OptionFunc) ([]byte, *Response, error) {
project, err := parseID(pid)
if err != nil {
return nil, nil, err
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment