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

Function set_commit_buffer

commit.c:369–375  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

367}
368
369void set_commit_buffer(struct repository *r, struct commit *commit, void *buffer, unsigned long size)
370{
371 struct commit_buffer *v = buffer_slab_at(
372 r->parsed_objects->buffer_slab, commit);
373 v->buffer = buffer;
374 v->size = size;
375}
376
377const void *get_cached_commit_buffer(struct repository *r, const struct commit *commit, unsigned long *sizep)
378{

Callers 3

parse_object_bufferFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected