Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 60a4dab commit 78b95e8Copy full SHA for 78b95e8
modules/git/foreachref/parser.go
@@ -32,8 +32,7 @@ func NewParser(r io.Reader, format Format) *Parser {
32
33
// default MaxScanTokenSize = 64 kiB may be too small for some references,
34
// so allow the buffer to grow up to 4x if needed
35
- buf := make([]byte, 0, bufio.MaxScanTokenSize)
36
- scanner.Buffer(buf, 4 * bufio.MaxScanTokenSize)
+ scanner.Buffer(nil, 4*bufio.MaxScanTokenSize)
37
38
// in addition to the reference delimiter we specified in the --format,
39
// `git for-each-ref` will always add a newline after every reference.
0 commit comments