]> git.ipfire.org Git - thirdparty/git.git/blobdiff - commit.h
alloc: allow arbitrary repositories for alloc functions
[thirdparty/git.git] / commit.h
index 0fb8271665c6c98ccca803fbe002327bf38fcfb3..2d764ab7d8e63536e06a83d78a13952fc8b7ebbe 100644 (file)
--- a/commit.h
+++ b/commit.h
@@ -99,6 +99,12 @@ void unuse_commit_buffer(const struct commit *, const void *buffer);
  */
 void free_commit_buffer(struct commit *);
 
+/*
+ * Release memory related to a commit, including the parent list and
+ * any cached object buffer.
+ */
+void release_commit_memory(struct commit *c);
+
 /*
  * Disassociate any cached object buffer from the commit, but do not free it.
  * The buffer (or NULL, if none) is returned.