summaryrefslogtreecommitdiffstats
path: root/modules/git/blob.go
diff options
context:
space:
mode:
Diffstat (limited to 'modules/git/blob.go')
-rw-r--r--modules/git/blob.go21
1 files changed, 1 insertions, 20 deletions
diff --git a/modules/git/blob.go b/modules/git/blob.go
index 98545f2f90..674a6a9592 100644
--- a/modules/git/blob.go
+++ b/modules/git/blob.go
@@ -10,28 +10,9 @@ import (
"encoding/base64"
"io"
"io/ioutil"
-
- "github.com/go-git/go-git/v5/plumbing"
)
-// Blob represents a Git object.
-type Blob struct {
- ID SHA1
-
- gogitEncodedObj plumbing.EncodedObject
- name string
-}
-
-// DataAsync gets a ReadCloser for the contents of a blob without reading it all.
-// Calling the Close function on the result will discard all unread output.
-func (b *Blob) DataAsync() (io.ReadCloser, error) {
- return b.gogitEncodedObj.Reader()
-}
-
-// Size returns the uncompressed size of the blob
-func (b *Blob) Size() int64 {
- return b.gogitEncodedObj.Size()
-}
+// This file contains common functions between the gogit and !gogit variants for git Blobs
// Name returns name of the tree entry this blob object was created from (or empty string)
func (b *Blob) Name() string {