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

Function scanPgpCont

plumbing/object/commit_scanner.go:266–268  ·  view source on GitHub ↗

scanPgpCont accumulates continuation lines for a signature header. Continuations strip exactly one leading space, mirroring upstream's `line + 1` (commit.c:1509). The first non-continuation line is pushed back so scanHeaders can dispatch it. Repeat occurrences of the same signature header land back

(s *commitScanner)

Source from the content-addressed store, hash-verified

264// header land back here and concatenate, matching upstream's
265// parse_buffer_signed_by_header (commit.c:1186).
266func scanPgpCont(s *commitScanner) (commitState, error) {
267 return continuationCont(s, &s.c.PGPSignature, scanPgpCont)
268}
269
270func continuationCont(s *commitScanner, dst *string, self commitState) (commitState, error) {
271 line, err := s.readLine()

Callers

nothing calls this directly

Calls 1

continuationContFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…