mirror of
https://gitcode.com/gitea/gitea.git
synced 2025-05-22 17:48:23 +08:00
update code.gitea.io/git (#450)
This commit is contained in:

committed by
Thomas Boerger

parent
0c5c34d7dd
commit
47a7529d96
1
vendor/code.gitea.io/git/blob.go
generated
vendored
1
vendor/code.gitea.io/git/blob.go
generated
vendored
@ -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)
|
||||
}
|
||||
|
Reference in New Issue
Block a user