| 484 | } |
| 485 | |
| 486 | void release_commit_memory(struct parsed_object_pool *pool, struct commit *c) |
| 487 | { |
| 488 | set_commit_tree(c, NULL); |
| 489 | free_commit_buffer(pool, c); |
| 490 | c->index = 0; |
| 491 | commit_list_free(c->parents); |
| 492 | |
| 493 | c->object.parsed = 0; |
| 494 | } |
| 495 | |
| 496 | const void *detach_commit_buffer(struct commit *commit, unsigned long *sizep) |
| 497 | { |
no test coverage detected