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

Method WithSignature

commit.go:95–101  ·  view source on GitHub ↗

WithSignature creates a new signed commit from the given signature and signature field

(signature string, signatureField string)

Source from the content-addressed store, hash-verified

93
94// WithSignature creates a new signed commit from the given signature and signature field
95func (c *Commit) WithSignature(signature string, signatureField string) (*Oid, error) {
96 return c.Owner().CreateCommitWithSignature(
97 c.ContentToSign(),
98 signature,
99 signatureField,
100 )
101}
102
103func (c *Commit) ExtractSignature() (string, string, error) {
104

Callers 2

WithSignatureUsingMethod · 0.95
seedTestRepoOptFunction · 0.80

Calls 3

ContentToSignMethod · 0.95
OwnerMethod · 0.45

Tested by 1

seedTestRepoOptFunction · 0.64