MCPcopy Create free account
hub / github.com/libgit2/git2go / ContentToSign

Method ContentToSign

commit.go:64–66  ·  view source on GitHub ↗

ContentToSign returns the content that will be passed to a signing function for this commit

()

Source from the content-addressed store, hash-verified

62
63// ContentToSign returns the content that will be passed to a signing function for this commit
64func (c *Commit) ContentToSign() string {
65 return c.RawHeader() + "\n" + c.RawMessage()
66}
67
68// CommitSigningCallback defines a function type that takes some data to sign and returns (signature, signature_field, error)
69type CommitSigningCallback func(string) (signature, signatureField string, err error)

Callers 4

WithSignatureUsingMethod · 0.95
WithSignatureMethod · 0.95
checkCommitSignedFunction · 0.80
seedTestRepoOptFunction · 0.80

Calls 2

RawHeaderMethod · 0.95
RawMessageMethod · 0.95

Tested by 2

checkCommitSignedFunction · 0.64
seedTestRepoOptFunction · 0.64