MCPcopy Index your code
hub / github.com/git/git / parse_signed_commit

Function parse_signed_commit

commit.c:1191–1202  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1189}
1190
1191int parse_signed_commit(const struct commit *commit,
1192 struct strbuf *payload, struct strbuf *signature,
1193 const struct git_hash_algo *algop)
1194{
1195 unsigned long size;
1196 const char *buffer = repo_get_commit_buffer(the_repository, commit,
1197 &size);
1198 int ret = parse_buffer_signed_by_header(buffer, size, payload, signature, algop);
1199
1200 repo_unuse_commit_buffer(the_repository, commit, buffer);
1201 return ret;
1202}
1203
1204int parse_buffer_signed_by_header(const char *buffer,
1205 unsigned long size,

Callers 1

show_signatureFunction · 0.85

Calls 3

repo_get_commit_bufferFunction · 0.85
repo_unuse_commit_bufferFunction · 0.85

Tested by

no test coverage detected