Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.kernel.org/pub/scm/git/git.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'commit.h')
-rw-r--r--commit.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/commit.h b/commit.h
index 0fb8271665..2d764ab7d8 100644
--- a/commit.h
+++ b/commit.h
@@ -100,6 +100,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.
*/