summaryrefslogtreecommitdiff
path: root/commit.h
diff options
context:
space:
mode:
authorLibravatar Stefan Beller <sbeller@google.com>2018-06-28 18:22:15 -0700
committerLibravatar Junio C Hamano <gitster@pobox.com>2018-06-29 10:43:40 -0700
commit65ea9d4bec141295d34955b286c32725fe3b422d (patch)
tree5a742e83896145560fcd1e7e2489589613191276 /commit.h
parentcommit-slabs: remove realloc counter outside of slab struct (diff)
downloadtgif-65ea9d4bec141295d34955b286c32725fe3b422d.tar.xz
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 'commit.h')
-rw-r--r--commit.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/commit.h b/commit.h
index e9cb5aaaae..bea5e015b2 100644
--- a/commit.h
+++ b/commit.h
@@ -89,6 +89,10 @@ static inline int parse_commit(struct commit *item)
}
void parse_commit_or_die(struct commit *item);
+struct buffer_slab;
+struct buffer_slab *allocate_commit_buffer_slab(void);
+void free_commit_buffer_slab(struct buffer_slab *bs);
+
/*
* Associate an object buffer with the commit. The ownership of the
* memory is handed over to the commit, and must be free()-able.