git-lfs/subprocess/buffered_cmd.go
Lars Schneider f06601cab5 git: add git[NoLFS]Buffered() to run a Git processes with buffered output
Replicate `lfs/gitscanner_cmd` in `subprocess/buffered_cmd` using
subprocess/cmd. In subsequent commits we will migrate all functions
users of `lfs/gitscanner_cmd` to `subprocess/buffered_cmd` and
afterwards remove `lfs/gitscanner_cmd`.
2017-08-22 19:34:29 +02:00

20 lines
258 B
Go

package subprocess
import (
"bufio"
"io"
)
const (
// stdoutBufSize is the size of the buffers given to a sub-process stdout
stdoutBufSize = 16384
)
type BufferedCmd struct {
*Cmd
Stdin io.WriteCloser
Stdout *bufio.Reader
Stderr *bufio.Reader
}