MCPcopy Create free account
hub / github.com/libgit2/git2go / AsBlob

Method AsBlob

object.go:167–174  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

165}
166
167func (o *Object) AsBlob() (*Blob, error) {
168 cobj, err := dupObject(o, ObjectBlob)
169 if err != nil {
170 return nil, err
171 }
172
173 return allocBlob((*C.git_blob)(cobj), o.repo), nil
174}
175
176func allocTag(ptr *C.git_tag, repo *Repository) *Tag {
177 tag := &Tag{

Callers 2

LookupBlobMethod · 0.80
LookupPrefixBlobMethod · 0.80

Calls 2

dupObjectFunction · 0.85
allocBlobFunction · 0.85

Tested by

no test coverage detected