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)
| 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. |
| 67 | func (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 |
no outgoing calls
no test coverage detected