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

Function get_cached_commit_buffer

commit.c:377–389  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

375}
376
377const void *get_cached_commit_buffer(struct repository *r, const struct commit *commit, unsigned long *sizep)
378{
379 struct commit_buffer *v = buffer_slab_peek(
380 r->parsed_objects->buffer_slab, commit);
381 if (!v) {
382 if (sizep)
383 *sizep = 0;
384 return NULL;
385 }
386 if (sizep)
387 *sizep = v->size;
388 return v->buffer;
389}
390
391const void *repo_get_commit_buffer(struct repository *r,
392 const struct commit *commit,

Callers 4

repo_logmsg_reencodeFunction · 0.85
parse_object_bufferFunction · 0.85
repo_get_commit_bufferFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected