({ payload, signature })
| 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) |
nothing calls this directly
no test coverage detected