Commit 6cd77382 authored by Sander van Harmelen's avatar Sander van Harmelen

Rename GetBlob to just Blob

After having another look, this seemed more consistent with other method
names used in this package.
parent 754a0989
...@@ -81,12 +81,12 @@ func (s *RepositoriesService) ListTree(pid interface{}, opt *ListTreeOptions, op ...@@ -81,12 +81,12 @@ func (s *RepositoriesService) ListTree(pid interface{}, opt *ListTreeOptions, op
return t, resp, err return t, resp, err
} }
// GetBlob gets information about blob in repository like size and content. // Blob gets information about blob in repository like size and content. Note
// Note that blob content is Base64 encoded. // that blob content is Base64 encoded.
// //
// GitLab API docs: // GitLab API docs:
// https://docs.gitlab.com/ce/api/repositories.html#get-a-blob-from-repository // 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) { func (s *RepositoriesService) Blob(pid interface{}, sha string, options ...OptionFunc) ([]byte, *Response, error) {
project, err := parseID(pid) project, err := parseID(pid)
if err != nil { if err != nil {
return nil, nil, err 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