MCPcopy Index your code
hub / github.com/go-git/go-git / scanMessage

Function scanMessage

plumbing/object/commit_scanner.go:337–350  ·  view source on GitHub ↗

scanMessage drains the remaining bytes into the message buffer.

(s *commitScanner)

Source from the content-addressed store, hash-verified

335
336// scanMessage drains the remaining bytes into the message buffer.
337func scanMessage(s *commitScanner) (commitState, error) {
338 for {
339 line, err := s.readLine()
340 if err != nil && err != io.EOF {
341 return nil, err
342 }
343 if len(line) > 0 {
344 s.msgbuf.Write(line)
345 }
346 if err == io.EOF {
347 return nil, nil
348 }
349 }
350}
351
352// isBlankLine reports whether line is the canonical header/body separator:
353// a single newline. Mirrors upstream's `*line == '\n'` test in

Callers

nothing calls this directly

Calls 2

readLineMethod · 0.45
WriteMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…