MCPcopy Create free account
hub / github.com/isomorphic-git/isomorphic-git / fromPayloadSignature

Method fromPayloadSignature

src/models/GitCommit.js:21–28  ·  view source on GitHub ↗
({ payload, signature })

Source from the content-addressed store, hash-verified

19 }
20
21 static fromPayloadSignature({ payload, signature }) {
22 const headers = GitCommit.justHeaders(payload)
23 const message = GitCommit.justMessage(payload)
24 const commit = normalizeNewlines(
25 headers + '\ngpgsig' + indent(signature) + '\n' + message
26 )
27 return new GitCommit(commit)
28 }
29
30 static from(commit) {
31 return new GitCommit(commit)

Callers

nothing calls this directly

Calls 4

normalizeNewlinesFunction · 0.90
indentFunction · 0.90
justMessageMethod · 0.80
justHeadersMethod · 0.45

Tested by

no test coverage detected