diff options
author | Stefan Beller <sbeller@google.com> | 2018-06-28 18:22:15 -0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2018-06-29 10:43:40 -0700 |
commit | 65ea9d4bec141295d34955b286c32725fe3b422d (patch) | |
tree | 5a742e83896145560fcd1e7e2489589613191276 /object.c | |
parent | 95bb9d4c326695553b9d5499752e24959e833f82 (diff) | |
download | git-65ea9d4bec141295d34955b286c32725fe3b422d.tar.gz |
commit.c: migrate the commit buffer to the parsed object store
Signed-off-by: Stefan Beller <sbeller@google.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'object.c')
-rw-r--r-- | object.c | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -467,6 +467,8 @@ struct parsed_object_pool *parsed_object_pool_new(void) o->is_shallow = -1; o->shallow_stat = xcalloc(1, sizeof(*o->shallow_stat)); + o->buffer_slab = allocate_commit_buffer_slab(); + return o; } @@ -541,6 +543,9 @@ void parsed_object_pool_clear(struct parsed_object_pool *o) FREE_AND_NULL(o->obj_hash); o->obj_hash_size = 0; + free_commit_buffer_slab(o->buffer_slab); + o->buffer_slab = NULL; + clear_alloc_state(o->blob_state); clear_alloc_state(o->tree_state); clear_alloc_state(o->commit_state); |