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

Method Sign

worktree_commit.go:156–162  ·  view source on GitHub ↗
(message io.Reader)

Source from the content-addressed store, hash-verified

154}
155
156func (s *gpgSigner) Sign(message io.Reader) ([]byte, error) {
157 var b bytes.Buffer
158 if err := openpgp.ArmoredDetachSign(&b, s.key, message, s.cfg); err != nil {
159 return nil, err
160 }
161 return b.Bytes(), nil
162}
163
164// buildTreeHelper converts a given index.Index file into multiple git objects
165// reading the blobs from the given filesystem and creating the trees from the

Callers

nothing calls this directly

Calls 1

BytesMethod · 0.45

Tested by

no test coverage detected