diff options
Diffstat (limited to 'plumbing/object/blob.go')
-rw-r--r-- | plumbing/object/blob.go | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/plumbing/object/blob.go b/plumbing/object/blob.go index f274e70..76b0e7d 100644 --- a/plumbing/object/blob.go +++ b/plumbing/object/blob.go @@ -8,7 +8,7 @@ import ( "srcd.works/go-git.v4/utils/ioutil" ) -// Blob is used to store file data - it is generally a file. +// Blob is used to store arbitrary data - it is generally a file. type Blob struct { Hash plumbing.Hash Size int64 @@ -26,6 +26,7 @@ func GetBlob(s storer.EncodedObjectStorer, h plumbing.Hash) (*Blob, error) { return DecodeBlob(o) } +// DecodeObject decodes an encoded object into a *Blob. func DecodeBlob(o plumbing.EncodedObject) (*Blob, error) { b := &Blob{} if err := b.Decode(o); err != nil { |