MCPcopy Create free account
hub / github.com/go-git/go-git / pushBack

Method pushBack

plumbing/object/commit_scanner.go:67–70  ·  view source on GitHub ↗

pushBack stashes an unconsumed line so the next state's readLine call sees it. Only one line can be pushed back at a time.

(line []byte, err error)

Source from the content-addressed store, hash-verified

65// pushBack stashes an unconsumed line so the next state's readLine call sees
66// it. Only one line can be pushed back at a time.
67func (s *commitScanner) pushBack(line []byte, err error) {
68 s.pending = line
69 s.pendingErr = err
70}
71
72// scanTree expects the first non-empty header to be `tree HASH`. Anything
73// else (or an empty buffer) is rejected with ErrMalformedCommit, matching

Callers 6

scanParentsFunction · 0.45
scanAuthorFunction · 0.45
scanCommitterFunction · 0.45
continuationContFunction · 0.45
scanSkipContFunction · 0.45
scanExtraContFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected