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

Function continuationCont

plumbing/object/commit_scanner.go:270–286  ·  view source on GitHub ↗
(s *commitScanner, dst *string, self commitState)

Source from the content-addressed store, hash-verified

268}
269
270func continuationCont(s *commitScanner, dst *string, self commitState) (commitState, error) {
271 line, err := s.readLine()
272 if err != nil && err != io.EOF {
273 return nil, err
274 }
275 if len(line) > 0 && line[0] == ' ' {
276 *dst += string(line[1:])
277 if err == io.EOF {
278 return nil, nil
279 }
280 return self, nil
281 }
282 if len(line) > 0 {
283 s.pushBack(line, err)
284 }
285 return scanHeaders, nil
286}
287
288// scanSkipCont discards continuation lines that belong to a header scanHeaders
289// chose to drop.

Callers 2

scanMergetagContFunction · 0.85
scanPgpContFunction · 0.85

Calls 2

readLineMethod · 0.45
pushBackMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…