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

Function free_commit_buffer

commit.c:422–430  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

420}
421
422void free_commit_buffer(struct parsed_object_pool *pool, struct commit *commit)
423{
424 struct commit_buffer *v = buffer_slab_peek(
425 pool->buffer_slab, commit);
426 if (v) {
427 FREE_AND_NULL(v->buffer);
428 v->size = 0;
429 }
430}
431
432static inline void set_commit_tree(struct commit *c, struct tree *t)
433{

Callers 5

get_revision_internalFunction · 0.85
release_commit_memoryFunction · 0.85
cmd_log_walk_no_freeFunction · 0.85
cmd_format_patchFunction · 0.85
finish_commitFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected