| 375 | } |
| 376 | |
| 377 | const 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 | |
| 391 | const void *repo_get_commit_buffer(struct repository *r, |
| 392 | const struct commit *commit, |
no outgoing calls
no test coverage detected