summaryrefslogtreecommitdiffstats
path: root/vendor/code.gitea.io/git/blob.go
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/code.gitea.io/git/blob.go')
-rw-r--r--vendor/code.gitea.io/git/blob.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/vendor/code.gitea.io/git/blob.go b/vendor/code.gitea.io/git/blob.go
index 478682e715..10b8ea4c9f 100644
--- a/vendor/code.gitea.io/git/blob.go
+++ b/vendor/code.gitea.io/git/blob.go
@@ -25,6 +25,7 @@ func (b *Blob) Data() (io.Reader, error) {
return bytes.NewBuffer(stdout), nil
}
+// DataPipeline gets content of blob and write the result or error to stdout or stderr
func (b *Blob) DataPipeline(stdout, stderr io.Writer) error {
return NewCommand("show", b.ID.String()).RunInDirPipeline(b.repo.Path, stdout, stderr)
}